mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 02:19:52 +02:00
Fix variable name (#3156)
This commit is contained in:
committed by
Ian Storm Taylor
parent
cd3a925592
commit
5de91cb4ee
@@ -146,7 +146,7 @@ const App = () => {
|
|||||||
defaultValue={defaultValue}
|
defaultValue={defaultValue}
|
||||||
onChange={value => {
|
onChange={value => {
|
||||||
// Serialize the value and save the string value to Local Storage.
|
// Serialize the value and save the string value to Local Storage.
|
||||||
const content = serialize(newValue)
|
const content = serialize(value)
|
||||||
localStorage.setItem('content', content)
|
localStorage.setItem('content', content)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user