Revisit event names emitted by openCloseComponent util #9513
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 8
Requires input from team, consider smaller steps.
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
refactor
Issues tied to code that needs to be significantly reworked.
Milestone
Description
Revisit event names emitted by openCloseComponent util.
Emitting
open/close
events whenexpanded/collapsed
might be misleading and won't work for cases where we have both props (e.g., list, action-menu).As an alternative consider
open/close
(or some other name) as the main events and add a prop to indicate which property it relates to.Consider expanding the scope of openCloseComponent to something like transitionEventComponent that would handle multiple types of transitions from open/expanded and whatever else may need it.
Blocked issues: #6017, #4544, #11227
Proposed Advantages
More clarity and accuracy in event naming, and compatibility with cases where both
expanded/collapsed
andopen/closed
props are present.Which Component
openCloseComponent util
Relevant Info
No response
Calcite package
The text was updated successfully, but these errors were encountered: