Skip to content

Commit

Permalink
fix: add @allowPreventDefault where needed (#8148)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev committed Jan 22, 2024
1 parent f79db71 commit 5d6eb44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/main/src/CheckBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ let activeCb: CheckBox;
* Fired when the component checked state changes.
*
* @public
* @allowPreventDefault
*/
@event("change")

Expand Down
1 change: 1 addition & 0 deletions packages/main/src/Input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ type InputSuggestionScrollEventDetail = {
*
* @param {HTMLElement} item The selected item.
* @public
* @allowPreventDefault
*/
@event<InputSuggestionItemSelectEventDetail>("suggestion-item-select", {
detail: {
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/MultiComboBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ type MultiComboboxItemWithSelection = {
*
* @param {IMultiComboBoxItem[]} items an array of the selected items.
* @public
* @allowPreventDefault
*/
@event<MultiComboBoxSelectionChangeEventDetail>("selection-change", {
detail: {
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/Switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import switchCss from "./generated/themes/Switch.css.js";
* Fired when the component checked state changes.
*
* @public
* @allowPreventDefault
*/
@event("change")
class Switch extends UI5Element implements IFormElement {
Expand Down

0 comments on commit 5d6eb44

Please sign in to comment.