Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix react event name mappings BREAKING CHANGE (#449)
BREAKING CHANGE: This commit changes event names in React wrappers. Current React users need to control the changes. Here is a chart to compare old and new names: | Component | Native Event Name | Current React Event | Proposed React Event | | --- | --- | --- | --- | | `BlAlert` | `bl-close` | `onClose` | `onBlClose`| | `BlButton` | `bl-click` | `onClick` | `onBlClick`| | `BlCheckboxGroup` | `bl-checkbox-group-change` | `onChange` | `onBlCheckboxGroupChange` | | `BlDialog` | `bl-dialog-open` | `onOpen` | `onBlDialogOpen` | | `BlDialog` | `bl-dialog-close` | `onClose` | `onBlDialogClose` | | `BlDrawer` | `bl-drawer-open` | `onOpen` | `onBlDrawerOpen` | | `BlDrawer` | `bl-drawer-close` | `onClose` | `onBlDrawerClose` | | `BlDropdown` | `bl-dropdown-open` | `onOpen` | `onBlDropdownOpen` | | `BlDropdown` | `bl-dropdown-close` | `onClose` | `onBlDropdownClose` | | `BlIcon` | `bl-load` | `onLoad` | `onBlLoad` | | `BlIcon` | `bl-error` | `onError` | `onBlError` | | `BlInput` | `bl-change` | `onChange` | `onBlChange` | | `BlInput` | `bl-input` | `onInput` | `onBlInput` | | `BlInput` | `bl-invalid` | `onInvalid` | `onBlInvalid` | | `BlPagination` | `bl-change` | `onChange` | `onBlChange` | | `BlRadioGroup` | `bl-radio-change` | `onChange` | `onBlRadioChange` | | `BlSelect` | `bl-select` | `onSelect` | `onBlSelect` | | `BlSwitch` | `bl-switch-toggle` | `onToggle` | `onBlSwitchToggle` | | `BlTextarea` | `bl-input` | `onInput` | `onBlInput` | | `BlTextarea` | `bl-change` | `onChange` | `onBlChange` | | `BlTextarea` | `bl-invalid` | `onInvalid` | `onBlInvalid` | | `BlTooltip` | `bl-tooltip-show` | `onShow` | `onBlTooltipShow` | | `BlTooltip` | `bl-tooltip-hide` | `onHide` | `onBlTooltipHide` | | `BlCheckbox` | `bl-checkbox-change` | `onChange` | `onBlCheckboxChange` | | `BlCheckbox` | `bl-focus` | `onFous` | `onBlFocus` | | `BlCheckbox` | `bl-blur` | `onBlur` | `onBlBlur` | | `BlDropdownItem` | `bl-dropdown-item-click` | `onClick` | `onBlDropdownItemClick` | | `BlRadio` | `bl-checked` | `onChecked` | `onBlChecked` | | `BlRadio` | `bl-focus` | `onFocus` | `onBlFocus` | | `BlRadio` | `bl-blur` | `onBlur` | `onBlBlur` | | `BlSelectOption` | `bl-select-option` | `onOption` | `onBlSelectOption` | | `BlTab` | `bl-tab-selected` | `onSelected` | `onBlTabSelected` |
- Loading branch information