@bifrostui/utils 1.4.0-beta.0 → 1.4.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -217,7 +217,7 @@ const triggerEventTransform = ({ trigger, click, show, hide }) => {
217
217
  }
218
218
  const option = {};
219
219
  triggers.forEach((item) => {
220
- const eventNames = TriggerEvent[item];
220
+ const eventNames = TriggerEvent[item] || [];
221
221
  eventNames.forEach((eventName) => {
222
222
  let cbk;
223
223
  if (eventName === onMouseEnter) {
@@ -1,3 +1,3 @@
1
1
  import type { TaroElement } from '@tarojs/runtime';
2
- declare const getRootElement: (rootEle?: TaroElement | (() => TaroElement)) => TaroElement | HTMLElement;
2
+ declare const getRootElement: (rootEle?: TaroElement | (() => TaroElement)) => HTMLElement | TaroElement;
3
3
  export default getRootElement;
@@ -192,7 +192,7 @@ const triggerEventTransform = ({ trigger, click, show, hide }) => {
192
192
  }
193
193
  const option = {};
194
194
  triggers.forEach((item) => {
195
- const eventNames = TriggerEvent[item];
195
+ const eventNames = TriggerEvent[item] || [];
196
196
  eventNames.forEach((eventName) => {
197
197
  let cbk;
198
198
  if (eventName === onMouseEnter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrostui/utils",
3
- "version": "1.4.0-beta.0",
3
+ "version": "1.4.0-beta.1",
4
4
  "description": "BUI React utilities for building components.",
5
5
  "main": "dist/index.js",
6
6
  "module": "es/index.js",