This version brings some important and breaking changes. Please consider to upgrade v2.
And very special thanks to Oririner from Reddit for such a great and detailed review. This feedback helped me a lot especially to release this version.
-
inputPropsandviewPropsfor both input and content div. 🎉You can customize
inputelement and thedivthat shows edited value. See Examples pages for detailes usage. -
onValidationFailprop. 🎉 🔒You don't have to stick to the default validation message and styling. You can track the
validityand act based on its value. See the examples page. -
Add
hintprop.Useful if you want to show a simple hint message at the bottom of input element.
-
Support for more input types. ✅
New Types ->
date,datetime-local,time,month,url,week,tel -
Add more examples -> https://alioguzhan.github.io/react-editext/
-
Remove
inputClassNameandcontainerClassNameprops⚠️ ❌Since we added
inputPropsandviewPropsthese are no longer needed. -
Remove
save on press Enterfeature.⚠️ ❌This blocks new line feature in textarea.
-
Added
type=buttonto all buttons. -
Improve tests
-
Added
classNameprop for custom styling to text content -
Added tests
-
Trigger save action on press Enter
-
Improve default styling for Firefox and Safari
-
Added this changelog
- Add
validationfeature. Now we can pass a function to validate the content before save it. See examples page for more details.
- Initial Release