@douyinfe/semi-foundation 2.90.11 → 2.90.13
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.
|
@@ -485,7 +485,7 @@ class SelectFoundation extends _foundation.default {
|
|
|
485
485
|
label
|
|
486
486
|
}, rest));
|
|
487
487
|
selections.delete(label);
|
|
488
|
-
} else if (maxLimit && selections.size
|
|
488
|
+
} else if (maxLimit && selections.size >= maxLimit) {
|
|
489
489
|
this._adapter.notifyMaxLimit(Object.assign({
|
|
490
490
|
value,
|
|
491
491
|
label
|
|
@@ -476,7 +476,7 @@ export default class SelectFoundation extends BaseFoundation {
|
|
|
476
476
|
label
|
|
477
477
|
}, rest));
|
|
478
478
|
selections.delete(label);
|
|
479
|
-
} else if (maxLimit && selections.size
|
|
479
|
+
} else if (maxLimit && selections.size >= maxLimit) {
|
|
480
480
|
this._adapter.notifyMaxLimit(Object.assign({
|
|
481
481
|
value,
|
|
482
482
|
label
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.90.
|
|
3
|
+
"version": "2.90.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rimraf lib",
|
|
@@ -9375,8 +9375,8 @@
|
|
|
9375
9375
|
}
|
|
9376
9376
|
},
|
|
9377
9377
|
"dependencies": {
|
|
9378
|
-
"@douyinfe/semi-animation": "2.90.
|
|
9379
|
-
"@douyinfe/semi-json-viewer-core": "2.90.
|
|
9378
|
+
"@douyinfe/semi-animation": "2.90.13",
|
|
9379
|
+
"@douyinfe/semi-json-viewer-core": "2.90.13",
|
|
9380
9380
|
"@mdx-js/mdx": "^3.0.1",
|
|
9381
9381
|
"async-validator": "^3.5.0",
|
|
9382
9382
|
"classnames": "^2.2.6",
|
|
@@ -9397,7 +9397,7 @@
|
|
|
9397
9397
|
"*.scss",
|
|
9398
9398
|
"*.css"
|
|
9399
9399
|
],
|
|
9400
|
-
"gitHead": "
|
|
9400
|
+
"gitHead": "e1a57f7201bb0a16d7f74a721bef0599796ea765",
|
|
9401
9401
|
"devDependencies": {
|
|
9402
9402
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
9403
9403
|
"@babel/preset-env": "^7.15.8",
|
package/select/foundation.ts
CHANGED
|
@@ -493,7 +493,7 @@ export default class SelectFoundation extends BaseFoundation<SelectAdapter> {
|
|
|
493
493
|
if (selections.has(label)) {
|
|
494
494
|
this._notifyDeselect(value, { value, label, ...rest });
|
|
495
495
|
selections.delete(label);
|
|
496
|
-
} else if (maxLimit && selections.size
|
|
496
|
+
} else if (maxLimit && selections.size >= maxLimit) {
|
|
497
497
|
this._adapter.notifyMaxLimit({ value, label, ...omit(rest, '_scrollIndex') });
|
|
498
498
|
return;
|
|
499
499
|
} else {
|