Description
Using React useState to control the value of Editable, calling setState does not seem to change the internal value of Editable.
Link to Reproduction
https://codesandbox.io/s/naughty-glade-ufqr78?file=/pages/index.tsx
Steps to reproduce
- The name state is set to "John" in useEffect once initially
- Click on the Editable text: "John"
- You can change, or not to change the Editable text.
- Press Escape key to abort.
- Editable shows placeholder text and the name state becomes the default empty string specified in useState("")
Chakra UI Version
1.8.6
Browser
Google Chrome 99
Operating System
Additional Information
No response
Description
Using React useState to control the value of Editable, calling setState does not seem to change the internal value of Editable.
Link to Reproduction
https://codesandbox.io/s/naughty-glade-ufqr78?file=/pages/index.tsx
Steps to reproduce
Chakra UI Version
1.8.6
Browser
Google Chrome 99
Operating System
Additional Information
No response