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
638 stars 162 forks source link

Getting validateDOMNesting(...): <button> cannot appear as a descendant of <button> error when datepicker modal is oppened on web #323

Closed daxazala closed 5 months ago

daxazala commented 10 months ago

Current behaviour

i am using datepicker modal from react native paper dates and recently updated the libraries with latest versions and then i tried to run the app and noticed below error react-dom.development.js:86 Warning: validateDOMNesting(...):

davidmartinrius commented 9 months ago

Hello, same error here in react native web + rn paper. Did you find any solution?

iM-GeeKy commented 9 months ago

PRs are welcome!

github-actions[bot] commented 9 months 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 8 months 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.

kebarvid commented 8 months ago

Have the same issue. Isn't a repro provided in the first post?

Martijncvv commented 8 months ago

Same problem: "react-native": "0.72.6", "expo": "~49.0.13", "react-native-paper-dates": "^0.19.7",

github-actions[bot] commented 7 months 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.

jweihsSF commented 7 months ago

The issue still occurs, but I don't have a solution yet.

RichardLindhout commented 6 months ago

Fixed!

123zarif commented 6 months ago

Still getting the error

123zarif commented 6 months ago

Anyone else getting the same error?

schtiefel commented 5 months ago

Yes, still getting the error.

react-native-paper-dates: 0.21.7 react-native-paper: 5.11.0 react-native: 0.72.6 react-native-web: 0.19.9

yngfoxx commented 5 months ago

I have replaced the IconButton with just the Icon component

RichardLindhout commented 5 months ago

Really cool! The icon component did not exist when I created this library :)

RichardLindhout commented 5 months ago

@schtiefel @123zarif the https://github.com/web-ridge/react-native-paper-dates/releases/tag/v0.21.8 by @yngfoxx should fix this issue :)