giorgosart / react-easy-edit

Inline editing library for React
https://giorgosart.gitbook.io/react-easy-edit/
MIT License
251 stars 45 forks source link

add isOpen prop #112

Closed midimurphdesigns closed 4 years ago

midimurphdesigns commented 4 years ago

add a prop called isOpen. When set to true it will be as if the user clicked the editable field, opening the editable text box allow for save/cancel. When set to false, it will close the editable field if open. This would allow you to open/close the editable from other components, which would satisfy a previous ticket.

at the moment, I don't believe there is a way to open/close the editable field based on a changeable boolean value. The only way to open it is to click on the editable field, and the only way to close it is to click cancel.