Skip to content

Initialize preselected datepickers#42618

Closed
ishaanlabs-gg wants to merge 1 commit into
twbs:v6-devfrom
ishaanlabs-gg:fix-datepicker-selected-dates-field
Closed

Initialize preselected datepickers#42618
ishaanlabs-gg wants to merge 1 commit into
twbs:v6-devfrom
ishaanlabs-gg:fix-datepicker-selected-dates-field

Conversation

@ishaanlabs-gg

Copy link
Copy Markdown

Summary

  • initialize datepickers with data-bs-selected-dates on page load
  • keep lazy initialization for ordinary datepickers
  • add a data-API regression test for preselected range inputs

Fixes #42616

Testing

  • git diff --check -- js/src/datepicker.js js/tests/unit/datepicker.spec.js
  • node --check js/src/datepicker.js
  • node --check js/tests/unit/datepicker.spec.js
  • source guard confirming the preselected-date auto-init selector and regression test

I could not run the full Karma suite locally because dependency installation ran out of disk space on this machine.

@ishaanlabs-gg ishaanlabs-gg requested a review from a team as a code owner July 2, 2026 19:40
@github-project-automation github-project-automation Bot moved this to Inbox in v6.0.0 Jul 3, 2026
@coliff

coliff commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

I think this can be closed now as it was fixed in: #42628

@mdo mdo closed this Jul 14, 2026
@mdo mdo removed this from v6.0.0 Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants