@rc-component/select 1.6.13 → 1.6.14
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.
package/es/SelectInput/index.js
CHANGED
|
@@ -100,7 +100,8 @@ export default /*#__PURE__*/React.forwardRef(function SelectInput(props, ref) {
|
|
|
100
100
|
blur: () => {
|
|
101
101
|
(inputRef.current || rootRef.current).blur?.();
|
|
102
102
|
},
|
|
103
|
-
nativeElement
|
|
103
|
+
// Use getDOM to handle nested nativeElement structure (e.g., when RootComponent is antd Input)
|
|
104
|
+
nativeElement: getDOM(rootRef.current)
|
|
104
105
|
};
|
|
105
106
|
});
|
|
106
107
|
|
package/lib/SelectInput/index.js
CHANGED
|
@@ -109,7 +109,8 @@ var _default = exports.default = /*#__PURE__*/React.forwardRef(function SelectIn
|
|
|
109
109
|
blur: () => {
|
|
110
110
|
(inputRef.current || rootRef.current).blur?.();
|
|
111
111
|
},
|
|
112
|
-
nativeElement
|
|
112
|
+
// Use getDOM to handle nested nativeElement structure (e.g., when RootComponent is antd Input)
|
|
113
|
+
nativeElement: (0, _findDOMNode.getDOM)(rootRef.current)
|
|
113
114
|
};
|
|
114
115
|
});
|
|
115
116
|
|