@douyinfe/semi-ui 2.51.0 → 2.51.1

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.
@@ -259,6 +259,8 @@ class Modal extends _baseComponent.default {
259
259
  componentWillUnmount() {
260
260
  if (this.props.visible) {
261
261
  this.foundation.destroy();
262
+ } else {
263
+ this.foundation.enabledBodyScroll();
262
264
  }
263
265
  }
264
266
  render() {
@@ -249,6 +249,8 @@ class Modal extends BaseComponent {
249
249
  componentWillUnmount() {
250
250
  if (this.props.visible) {
251
251
  this.foundation.destroy();
252
+ } else {
253
+ this.foundation.enabledBodyScroll();
252
254
  }
253
255
  }
254
256
  render() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.51.0",
3
+ "version": "2.51.1",
4
4
  "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,12 +20,12 @@
20
20
  "@dnd-kit/core": "^6.0.8",
21
21
  "@dnd-kit/sortable": "^7.0.2",
22
22
  "@dnd-kit/utilities": "^3.2.1",
23
- "@douyinfe/semi-animation": "2.51.0",
24
- "@douyinfe/semi-animation-react": "2.51.0",
25
- "@douyinfe/semi-foundation": "2.51.0",
26
- "@douyinfe/semi-icons": "2.51.0",
27
- "@douyinfe/semi-illustrations": "2.51.0",
28
- "@douyinfe/semi-theme-default": "2.51.0",
23
+ "@douyinfe/semi-animation": "2.51.1",
24
+ "@douyinfe/semi-animation-react": "2.51.1",
25
+ "@douyinfe/semi-foundation": "2.51.1",
26
+ "@douyinfe/semi-icons": "2.51.1",
27
+ "@douyinfe/semi-illustrations": "2.51.1",
28
+ "@douyinfe/semi-theme-default": "2.51.1",
29
29
  "async-validator": "^3.5.0",
30
30
  "classnames": "^2.2.6",
31
31
  "copy-text-to-clipboard": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  "author": "",
77
77
  "license": "MIT",
78
- "gitHead": "5a554bf517411b933e891ad51b874bd9eb6c87c6",
78
+ "gitHead": "c81cf7801f7c7afd385d63e1e7dd1cf533d7fc83",
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.15.8",
81
81
  "@babel/plugin-transform-runtime": "^7.15.8",