-
Notifications
You must be signed in to change notification settings - Fork 77
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
Closing the active tab does not fire events for tab change #7221
Comments
Research to be conducted in August to determine the time estimate needed for a fix in a future milestone. |
Research Summary The question revolves around whether the automatic movement of selection to the next tab after closing one should be considered a user-triggered activation or a programmatic action. Currently, no Here are some precedent examples where related events are emitted in response to user-initiated actions in other components:
It seems to make sense that emitting associated events should only occur when the user initiates an action that would trigger those events because internal events may not always be necessary; they have been used in specific cases as implementation details. There was some confusion about the difference between Note that non-selected I'll be adding addendum documentation regarding emitting associated events for user-initiated actions in the conventions section under event handling guidelines. |
Installed and assigned for verification. |
🍠 Verified on |
Actual Behavior
Originally documented in #7155 but broken into a smaller bug report at the request of @mpriour .
When you close the active tab, the active tab automatically changes (as intended) but this does not fire the onCalciteTabsActivate or onCalciteTabChange events for CalciteTabTitle and CalciteTabNav, respectively
Expected Behavior
When you close the active tab and it moves you to a new tab, all of the events for tab navigation should fire.
Reproduction Sample
https://codesandbox.io/s/new-feather-qsyw8j?file=/src/App.js
Reproduction Steps
Reproduction Version
1.4.2
Relevant Info
No response
Regression?
No response
Priority impact
p3 - want for upcoming milestone
Impact
This prevents ArcGIS studio from being able to utilize callbacks on tab navigation events reliably. We have to do workarounds where tab closure triggers special handling to also consider navigation, rather than just have navigation events be handled by the actual navigation event handler on the component.
Esri team
ArcGIS Knowledge
The text was updated successfully, but these errors were encountered: