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

Datepicker: Future dates with reactive forms throws error #1220

Open
1 task done
nerjok opened this issue Feb 19, 2024 · 0 comments
Open
1 task done

Datepicker: Future dates with reactive forms throws error #1220

nerjok opened this issue Feb 19, 2024 · 0 comments
Labels
Comp: Datepicker Type: Bug Something isn't working

Comments

@nerjok
Copy link
Contributor

nerjok commented Feb 19, 2024

Bug already reported?

  • I confirm that I have checked if the bug already has been reported

For which framework/library you are reporting the bug

Angular

Component name

datepicker

Description

Using <ngg-datepicker formControlName="dateTo" with reactive form future dates throws error:

ERROR Error: Uncaught (in promise): NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

image

Steps To Reproduce

datepicker in fresh reactive angular form
select future date from year dropdown
select day
error is thrown

Current Behaviour

No response

Expected Behaviour

date is selected and displayed

might be related to provided minDate/maxDates as well

@nerjok nerjok added the Type: Bug Something isn't working label Feb 19, 2024
@EldRoos EldRoos changed the title Datepicker, future dates with reactive forms throws error Datepicker: Future dates with reactive forms throws error Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Comp: Datepicker Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants