-
Notifications
You must be signed in to change notification settings - Fork 270
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
chore(ui5-select): migrate to tsx template #10469
base: main
Are you sure you want to change the base?
Conversation
horizontalAlign="Start" | ||
hideArrow={true} | ||
preventInitialFocus={true} | ||
onui5-open={this._afterOpen} |
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.
onOpen, onBeforeOpen, onClose should be available on ResponsivePopover
selectionMode="SingleAuto" | ||
separators="None" | ||
onMouseDown={this._itemMousedown} | ||
onui5-item-click={this._handleItemPress} |
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.
Here you should use onItemClick.
We only need to use "onui5-" on elements that don't emit the expected event, for example if we want to listen on a "div", wrapping a List, then we must use "onui5-item-click", because the "div" does not have such an event.
Whenever we listen on web component level, we can use the camelCase event name that is also suggested and autocompleted.
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.
Thank you for the clarification! This makes perfect sense now. I appreciate the detailed explanation.
Related to: #10046