web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
637 stars 161 forks source link

Cannot disable save button or set saveLabelDisabled true when invalid date is entered? #388

Open suniltakorsvp opened 1 month ago

suniltakorsvp commented 1 month ago

How to disable save button or set saveLabelDisabled true when invalid date is entered?

I'm trying to disable 'Save' button or set saveLabelDisabled true when invalid date is entered.

Let me know if someone already faced this issue and already fixed.

Disable Save button

github-actions[bot] commented 1 month ago

Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to snack.expo.dev) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.).

github-actions[bot] commented 1 month ago

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.

github-actions[bot] commented 2 weeks ago

Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.

RichardLindhout commented 5 days ago

@suniltakorsvp I will accept a PR which will not send the in onConfirm. I don't want to disable buttons it is bad UX. https://uxdworld.com/2024/01/29/disabled-buttons-ux/#:~:text=Design%20is%20communication%20and%20disabled,while%20interacting%20with%20an%20interface.