Skip to content

fix: do not validate fullscreen date-picker on internal blur while opening - #12434

Merged
web-padawan merged 1 commit into
mainfrom
fix/12432-fullscreen-invalid-on-open
Aug 19, 2026
Merged

fix: do not validate fullscreen date-picker on internal blur while opening#12434
web-padawan merged 1 commit into
mainfrom
fix/12432-fullscreen-invalid-on-open

Conversation

@web-padawan

@web-padawan web-padawan commented Aug 14, 2026

Copy link
Copy Markdown
Member

Description

Fixes #12432

Added the flag around the blur() call when opening in fullscreen mode to not run validation.


🤖 Generated with Claude Code

@vaadin-review-bot vaadin-review-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes — left 2 comments.

Finding
🧹 New __ignoreInternalBlur flag duplicates the picker family's existing _closeOnBlurIsPrevented "internal blur" guard.
👀 No test chains the flag-setting _onFocus path with a later real validation, so a stuck flag would go unnoticed.

Comment thread packages/date-picker/src/vaadin-date-picker-mixin.js
Comment thread packages/date-picker/test/fullscreen.test.js
@web-padawan
web-padawan force-pushed the fix/12432-fullscreen-invalid-on-open branch from beac5f3 to ec5d773 Compare August 14, 2026 08:07
In fullscreen mode text input is disabled, so focusing the input blurs
it again right away to hide the virtual keyboard. That blur is an
internal detail, but the blur handler could not tell it apart from a
real one and ran the full "user left the field" logic. Tapping a
required date-picker therefore marked it invalid while the calendar was
still opening, before the user could pick anything.

The value commit is skipped along with the validation: in this mode the
input cannot be typed into, so there is never a typed value to commit.

Fixes #12432

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@web-padawan
web-padawan force-pushed the fix/12432-fullscreen-invalid-on-open branch from ec5d773 to 6f298ed Compare August 14, 2026 08:09
@sonarqubecloud

Copy link
Copy Markdown

@web-padawan
web-padawan requested a review from vursen August 14, 2026 08:12
@web-padawan web-padawan changed the title fix: do not validate when date-picker blurs input internally fix: do not validate fullscreen date-picker on internal blur while opening Aug 14, 2026
@web-padawan
web-padawan removed the request for review from vursen August 19, 2026 08:21
@web-padawan
web-padawan merged commit adc2997 into main Aug 19, 2026
13 checks passed
@web-padawan
web-padawan deleted the fix/12432-fullscreen-invalid-on-open branch August 19, 2026 08:22
web-padawan added a commit that referenced this pull request Aug 19, 2026
…ening (#12434) (#12444)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
web-padawan added a commit that referenced this pull request Aug 19, 2026
…ening (#12434) (#12445)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[date-picker] field becomes invalid when opening the overlay on fullscreen

4 participants