Git Product home page Git Product logo

Comments (6)

giorgosart avatar giorgosart commented on September 28, 2024

Hello @joingenor i'll take a look at this and get back to you

from react-easy-edit.

giorgosart avatar giorgosart commented on September 28, 2024

@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.

joingenor avatar joingenor commented on September 28, 2024

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.

giorgosart avatar giorgosart commented on September 28, 2024

@joingenor pushed a fix for this, can you check whether v0.4.1 fixes your issue?

from react-easy-edit.

joingenor avatar joingenor commented on September 28, 2024

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.

giorgosart avatar giorgosart commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.