vue-devui 1.6.20 → 1.6.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/table/index.es.js CHANGED
@@ -269,11 +269,15 @@ function useHorizontalScroll(table2) {
269
269
  return { onTableScroll };
270
270
  }
271
271
  const inBrowser = typeof window !== "undefined";
272
+ function judgeFireIsElement(element) {
273
+ const str = Object.prototype.toString.call(element);
274
+ return str.includes("object") && str.includes("HTML") && str.includes("Element");
275
+ }
272
276
  function getElement(element) {
273
- if (element instanceof Element) {
277
+ if (element instanceof Element || judgeFireIsElement(element)) {
274
278
  return element;
275
279
  }
276
- if (element && typeof element === "object" && element.$el instanceof Element) {
280
+ if (element && typeof element === "object" && (element.$el instanceof Element || judgeFireIsElement(element.$el))) {
277
281
  return element.$el;
278
282
  }
279
283
  return null;