浏览代码

Bugfix: ResizeObserver problems fixed.

lfabl 1 周之前
父节点
当前提交
2091e5c3db

+ 0 - 11
example/src/index.tsx

@@ -15,17 +15,6 @@ import {
 import "moment/locale/tr";
 import moment from "moment";
 
-if (Platform.OS === "web" && typeof window !== "undefined") {
-    window.addEventListener("error", (e) => {
-        if (
-            e.message === "ResizeObserver loop limit exceeded" ||
-            e.message === "ResizeObserver loop completed with undelivered notifications."
-        ) {
-            e.stopImmediatePropagation();
-        }
-    });
-}
-
 let NCoreConfig: NCoreUIKitConfig = {
     projectThemes: defaultThemeJSON as NCoreUIKit.Palette,
     initialSelectedGapPropagation: "spacious",

+ 2 - 1
example/src/pages/components/userShortcut/index.tsx

@@ -46,7 +46,8 @@ const SPREAD_BEHAVIOURS_DATA = SPREAD_BEHAVIOURS.map((type) => ({
 
 const VARIANT_TYPES: Array<NonNullable<IUserShortcutProps["variant"]>> = [
     "default",
-    "compact"
+    "compact",
+    "drawer"
 ];
 
 const VARIANT_TYPES_DATA = VARIANT_TYPES.map((type) => ({

+ 2 - 2
example/web/webpack.config.js

@@ -76,8 +76,8 @@ let config = {
         client: {
             logging: "none",
             overlay: {
-                errors: true,
-                warnings: false
+                warnings: false,
+                errors: true
             }
         }
     },

+ 0 - 3
src/components/webScrollbar/index.tsx

@@ -54,7 +54,6 @@ const WebScrollbar = () => {
             #root *::-webkit-scrollbar-thumb,
             body *::-webkit-scrollbar-thumb,
             html *::-webkit-scrollbar-thumb {
-                transition: border 0.5s, border-radius 0.5s, background 0.5s, background-clip 0.5s;
                 border: ${borders.scrollBarThumb}px solid transparent !important;
                 background: ${colors.content.container.primary} !important;
                 border-radius: ${radiuses.scrollBarThumb}px !important;
@@ -64,7 +63,6 @@ const WebScrollbar = () => {
             #root *::-webkit-scrollbar-thumb:hover,
             body *::-webkit-scrollbar-thumb:hover,
             html *::-webkit-scrollbar-thumb:hover {
-                transition: border 0.5s, border-radius 0.5s, background 0.5s, background-clip 0.5s;
                 border: ${borders.scrollBarThumbHover}px solid transparent !important;
                 border-radius: ${radiuses.scrollBarThumbHover}px !important;
                 background: ${colors.content.container.primary} !important;
@@ -74,7 +72,6 @@ const WebScrollbar = () => {
             #root *::-webkit-scrollbar-thumb:active,
             body *::-webkit-scrollbar-thumb:active,
             html *::-webkit-scrollbar-thumb:active {
-                transition: border 0.5s, border-radius 0.5s, background 0.5s, background-clip 0.5s;
                 border: ${borders.scrollBarThumbActive}px solid transparent !important;
                 background: ${colors.content.container.emphasized} !important;
                 border-radius: ${radiuses.scrollBarThumbActive}px !important;