Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar triggers onChange event twice when mask property is set #2018

Closed
djapal opened this issue May 6, 2021 · 3 comments · Fixed by #2810
Closed

Calendar triggers onChange event twice when mask property is set #2018

djapal opened this issue May 6, 2021 · 3 comments · Fixed by #2810
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@djapal
Copy link

djapal commented May 6, 2021

I noticed this senario when I added mask property as property of my Calendar component.

Please check here

@djapal djapal changed the title Calendar triggers onChange event when mask property is set Calendar triggers onChange event twice when mask property is set May 10, 2021
@djapal
Copy link
Author

djapal commented May 10, 2021

if mask is not set, change event is triggered one time, as it should. if i set mask, then it is triggered 2 times.

@mertsincan
Copy link
Member

mertsincan commented May 10, 2021

Hi,

Thanks a lot for the codesandbox link! But, I couldn't replicate it. What am I doing wrong? Both seem to be working the same. Could you please attach a video to show the problem? Thanks a lot!

Best Regards,

@mertsincan mertsincan added the Resolution: Cannot Replicate Issue could not be replicated by Core Team label May 14, 2021
@djapal
Copy link
Author

djapal commented May 21, 2021

sorry for the late reply. In this sandbox, open the console at the right and see the output. If you choose a date with mask property set, it logs twice the output. (console.log("111");)
If you remove the mask property, console.log("111"); is triggered only one time.

@melloware melloware self-assigned this Apr 26, 2022
melloware added a commit to melloware/primereact that referenced this issue Apr 27, 2022
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Resolution: Cannot Replicate Issue could not be replicated by Core Team labels Apr 27, 2022
@melloware melloware added this to the 8.1.0 milestone Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants