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

fix(material/timepicker): TimepickerInput component in shadow DOM #30642

Merged

Conversation

calebkish
Copy link
Contributor

Fixes an issue where the value of the input element referenced by a TimepickerInput component inside a shadow DOM was getting formatted too often due to TimepickerInput._hasFocus() assuming the component wasn't in the shadow DOM.

Fixes #30641

@calebkish calebkish requested a review from a team as a code owner March 17, 2025 21:49
@calebkish calebkish requested review from mmalerba and andrewseguin and removed request for a team March 17, 2025 21:49
Copy link

google-cla bot commented Mar 17, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@calebkish calebkish force-pushed the mat-timepicker-input-focus-shadow-dom-fix branch from 4070e9b to b06aebd Compare March 17, 2025 21:57
@mmalerba mmalerba removed their request for review March 18, 2025 06:25
@calebkish calebkish requested a review from crisbeto March 18, 2025 18:19
@crisbeto crisbeto removed the request for review from andrewseguin March 19, 2025 07:16
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Mar 19, 2025
Fixes an issue where the value of the input element referenced by a
TimepickerInput component inside a shadow DOM was getting formatted too
often due to `TimepickerInput._hasFocus()` assuming the component wasn't
in the shadow DOM.

Fixes angular#30641
@calebkish calebkish force-pushed the mat-timepicker-input-focus-shadow-dom-fix branch from abc1347 to 442866e Compare March 19, 2025 16:43
@crisbeto crisbeto merged commit ee44255 into angular:main Mar 19, 2025
7 of 9 checks passed
crisbeto pushed a commit that referenced this pull request Mar 19, 2025
…0642)

Fixes an issue where the value of the input element referenced by a
TimepickerInput component inside a shadow DOM was getting formatted too
often due to `TimepickerInput._hasFocus()` assuming the component wasn't
in the shadow DOM.

Fixes #30641

Co-authored-by: Caleb Kish <j69674031@gmail.com>
(cherry picked from commit ee44255)
@crisbeto
Copy link
Member

The changes were merged into the following branches: main, 19.2.x

mistrykaran91 pushed a commit to mistrykaran91/components that referenced this pull request Mar 20, 2025
…gular#30642)

Fixes an issue where the value of the input element referenced by a
TimepickerInput component inside a shadow DOM was getting formatted too
often due to `TimepickerInput._hasFocus()` assuming the component wasn't
in the shadow DOM.

Fixes angular#30641

Co-authored-by: Caleb Kish <j69674031@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: material/timepicker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(TimepickerInput): Incorrect input behavior when component is in shadow DOM
2 participants