Comments (6)
Hello @joingenor i'll take a look at this and get back to you
from react-easy-edit.
@joingenor Instead of using the default value, could you not use the value
prop?
...
value={selectedChair.lastServiceDate ? selectedChair.lastServiceDate : '2019-04-01'}
...
from react-easy-edit.
I do not think that is a good solution, because then the user will think that the value is set to today's date and will not set the value...
from react-easy-edit.
@joingenor pushed a fix for this, can you check whether v0.4.1
fixes your issue?
from react-easy-edit.
This worked, but I have a suggestion for a improvement.
When the field has a default value (todays date) I think that if the user wants to just use that value the user will hit Save (I know I will). But then the value sent to the onSave event will be ''. I have made a workaround in the onSave event in my code, but it will be nice to just get the default value passed to the onSave event
from react-easy-edit.
Great I'm glad it fixed your issue, closing this bug ticket for now.
Can you raise another bug ticket for the request above please?
from react-easy-edit.
Related Issues (20)
- Improve unit test coverage: cover `_onBlur` function
- Improve unit test coverage: cover `onCheckboxChange` function HOT 4
- Add support for input type `tel` and `url`
- No value is returned from the function '_onFocus' defined at line 91
- Disallow missing React when using JSX (react/react-in-jsx-scope)
- Only show the "Save", "Cancel" and "Delete" buttons when the user hovers over the EasyEdit component
- Issue in merging issue #170 at automatic merging at CI test case and Scan HOT 3
- Add an edit button that would allow users to click it to enter the edit mode of the component.
- Expose the coverage report as part of the CI/CD pipeline in CircleCI HOT 2
- Fixing Input Box
- Breaking after updating to 1.17.1 HOT 4
- Fix SonarCloud code smells for `EasyInput.jsx` HOT 2
- Fix SonarCloud code smells for `EasyRadio.jsx` HOT 2
- Fix SonarCloud code smells for `EasyEdit.jsx` HOT 1
- Fix SonarCloud code smells for `EasyDatalist.jsx` HOT 2
- Fix SonarCloud code smells for `EasyCustom.jsx` HOT 2
- Enhancement - Add Prettier to Improve Code Readability HOT 1
- I will remove the unnecessary components from the file HOT 6
- Fix Typos
- Add typescript types HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-easy-edit.