iou90 4 年之前
父節點
當前提交
6669409bea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      autoHeightWebView/index.js

+ 1
- 1
autoHeightWebView/index.js 查看文件

@@ -46,7 +46,7 @@ const AutoHeightWebView = React.memo(
46 46
         return;
47 47
       }
48 48
       const { height, width, zoomedin } = data;
49
-      !scrollEnabled && scrollEnabledWithZoomedin && setScrollable(zoomedin);
49
+      !scrollEnabled && scrollEnabledWithZoomedin && setScrollable(!!zoomedin);
50 50
       const { height: previousHeight, width: previousWidth } = size;
51 51
       isSizeChanged({ height, previousHeight, width, previousWidth }) &&
52 52
         setSize({