@douyinfe/semi-foundation 2.21.0-beta.0 → 2.21.0-beta.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.
|
@@ -415,7 +415,9 @@ class AutoCompleteFoundation<P = Record<string, any>, S = Record<string, any>> e
|
|
|
415
415
|
this._adapter.notifyFocus(e);
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
handleBlur(e:
|
|
418
|
+
handleBlur(e: any) {
|
|
419
|
+
// https://reactjs.org/docs/legacy-event-pooling.html
|
|
420
|
+
e.persist();
|
|
419
421
|
// In order to handle the problem of losing onClick binding when clicking on the padding area, the onBlur event is triggered first to cause the react view to be updated
|
|
420
422
|
// internal-issues:1231
|
|
421
423
|
setTimeout(() => {
|
|
@@ -60,6 +60,6 @@ declare class AutoCompleteFoundation<P = Record<string, any>, S = Record<string,
|
|
|
60
60
|
_handleEnterKeyDown(): void;
|
|
61
61
|
handleOptionMouseEnter(optionIndex: number): void;
|
|
62
62
|
handleFocus(e: FocusEvent): void;
|
|
63
|
-
handleBlur(e:
|
|
63
|
+
handleBlur(e: any): void;
|
|
64
64
|
}
|
|
65
65
|
export default AutoCompleteFoundation;
|
|
@@ -499,8 +499,10 @@ class AutoCompleteFoundation extends _foundation.default {
|
|
|
499
499
|
}
|
|
500
500
|
|
|
501
501
|
handleBlur(e) {
|
|
502
|
-
//
|
|
502
|
+
// https://reactjs.org/docs/legacy-event-pooling.html
|
|
503
|
+
e.persist(); // In order to handle the problem of losing onClick binding when clicking on the padding area, the onBlur event is triggered first to cause the react view to be updated
|
|
503
504
|
// internal-issues:1231
|
|
505
|
+
|
|
504
506
|
setTimeout(() => {
|
|
505
507
|
this._adapter.notifyBlur(e);
|
|
506
508
|
|
|
@@ -60,6 +60,6 @@ declare class AutoCompleteFoundation<P = Record<string, any>, S = Record<string,
|
|
|
60
60
|
_handleEnterKeyDown(): void;
|
|
61
61
|
handleOptionMouseEnter(optionIndex: number): void;
|
|
62
62
|
handleFocus(e: FocusEvent): void;
|
|
63
|
-
handleBlur(e:
|
|
63
|
+
handleBlur(e: any): void;
|
|
64
64
|
}
|
|
65
65
|
export default AutoCompleteFoundation;
|
|
@@ -485,8 +485,10 @@ class AutoCompleteFoundation extends BaseFoundation {
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
handleBlur(e) {
|
|
488
|
-
//
|
|
488
|
+
// https://reactjs.org/docs/legacy-event-pooling.html
|
|
489
|
+
e.persist(); // In order to handle the problem of losing onClick binding when clicking on the padding area, the onBlur event is triggered first to cause the react view to be updated
|
|
489
490
|
// internal-issues:1231
|
|
491
|
+
|
|
490
492
|
setTimeout(() => {
|
|
491
493
|
this._adapter.notifyBlur(e);
|
|
492
494
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.21.0-beta.
|
|
3
|
+
"version": "2.21.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "973e1636cfc1363d35713022c307b3525df4eeda",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|