-
Notifications
You must be signed in to change notification settings - Fork 76
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(input-time-zone): ensure beforeOpen
/open
and beforeClose
/close
events emit properly
#10228
fix(input-time-zone): ensure beforeOpen
/open
and beforeClose
/close
events emit properly
#10228
Conversation
beforeOpen
/open
and beforeClose
/close
events emit properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -487,6 +493,7 @@ export class InputTimeZone | |||
componentDidLoad(): void { | |||
setComponentLoaded(this); | |||
this.overrideSelectedLabelForRegion(this.open); | |||
this.openChanged(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this, i'm wondering if its better to call this when there's a ref for the element rather than in componentDidLoad?
I'm not sure it makes a difference in most cases but it just seems more appropriate?
In this case it would be in setComboboxRef
…lose` events emit properly (#10228)
…lose` events emit properly (#10228)
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.12.2</summary> ## [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.12.1...@esri/calcite-components@2.12.2) (2024-09-09) ### Bug Fixes * **input-time-zone:** Ensure `beforeOpen`/`open` and `beforeClose`/`close` events emit properly ([#10228](#10228)) ([71423cb](71423cb)) * **panel, flow-item:** Hide focus-outline when scrolling via mouse to align with browsers ([#10242](#10242)) ([7a8cb72](7a8cb72)) * **shell:** Fix z-index of shell-panels ([#10224](#10224)) ([36d51b6](36d51b6)) </details> <details><summary>@esri/calcite-components-angular: 2.12.2</summary> ## [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.12.1...@esri/calcite-components-angular@2.12.2) (2024-09-09) ### Miscellaneous Chores * **@esri/calcite-components-angular:** Synchronize components versions ### Dependencies * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.1 to 2.12.2 </details> <details><summary>@esri/calcite-components-react: 2.12.2</summary> ## [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.12.1...@esri/calcite-components-react@2.12.2) (2024-09-09) ### Miscellaneous Chores * **@esri/calcite-components-react:** Synchronize components versions ### Dependencies * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.1 to 2.12.2 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.12.2</summary> [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.12.1...@esri/calcite-components@2.12.2) (2024-09-09) * **input-time-zone:** Ensure `beforeOpen`/`open` and `beforeClose`/`close` events emit properly ([#10228](#10228)) ([71423cb](71423cb)) * **panel, flow-item:** Hide focus-outline when scrolling via mouse to align with browsers ([#10242](#10242)) ([7a8cb72](7a8cb72)) * **shell:** Fix z-index of shell-panels ([#10224](#10224)) ([36d51b6](36d51b6)) </details> <details><summary>@esri/calcite-components-angular: 2.12.2</summary> [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.12.1...@esri/calcite-components-angular@2.12.2) (2024-09-09) * **@esri/calcite-components-angular:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.1 to 2.12.2 </details> <details><summary>@esri/calcite-components-react: 2.12.2</summary> [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.12.1...@esri/calcite-components-react@2.12.2) (2024-09-09) * **@esri/calcite-components-react:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.1 to 2.12.2 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- <details><summary>@esri/calcite-components: 2.12.2</summary> [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components@2.12.1...@esri/calcite-components@2.12.2) (2024-09-09) * **input-time-zone:** Ensure `beforeOpen`/`open` and `beforeClose`/`close` events emit properly ([#10228](#10228)) ([71423cb](71423cb)) * **panel, flow-item:** Hide focus-outline when scrolling via mouse to align with browsers ([#10242](#10242)) ([7a8cb72](7a8cb72)) * **shell:** Fix z-index of shell-panels ([#10224](#10224)) ([36d51b6](36d51b6)) </details> <details><summary>@esri/calcite-components-angular: 2.12.2</summary> [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-angular@2.12.1...@esri/calcite-components-angular@2.12.2) (2024-09-09) * **@esri/calcite-components-angular:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.1 to 2.12.2 </details> <details><summary>@esri/calcite-components-react: 2.12.2</summary> [2.12.2](https://github.com/Esri/calcite-design-system/compare/@esri/calcite-components-react@2.12.1...@esri/calcite-components-react@2.12.2) (2024-09-09) * **@esri/calcite-components-react:** Synchronize components versions * The following workspace dependencies were updated * dependencies * @esri/calcite-components bumped from 2.12.1 to 2.12.2 </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Related Issue: #9315, #10227
Summary
This addresses some issues that prevented
beforeOpen
/open
andbeforeClose
/close
events from emitting as expected.Notes
openClose
was added to handle the programmatically opened and appended use case to simplify code and usageinput-time-zone
was missed in fix: ensurebeforeOpen
/open
andbeforeClose
/close
events emit properly #9958 (my bad! 😅)