x-ui-design 0.5.28 → 0.5.29
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/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +2 -3
- package/package.json +1 -1
- package/src/app/page.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3666,7 +3666,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3666
3666
|
if (maxTagCount === 'responsive' && tagContainerRef.current) {
|
|
3667
3667
|
const calculateTagsToDisplay = () => {
|
|
3668
3668
|
const container = tagContainerRef.current;
|
|
3669
|
-
const tags = Array.from(container?.querySelectorAll(`.${prefixCls}-tag`) || []);
|
|
3669
|
+
const tags = Array.from(container?.querySelectorAll(`.${prefixCls}-tag:not(.contentEditable)`) || []);
|
|
3670
3670
|
const containerWidth = container?.clientWidth || 0;
|
|
3671
3671
|
let currentWidth = 0;
|
|
3672
3672
|
let count = 0;
|
|
@@ -3747,7 +3747,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3747
3747
|
opacity: 0.5
|
|
3748
3748
|
}
|
|
3749
3749
|
}, searchFocused ? '' : placeholder)) : null, isOpen ? /*#__PURE__*/React.createElement("div", {
|
|
3750
|
-
className: `${prefixCls}-tag`
|
|
3750
|
+
className: `${prefixCls}-tag contentEditable`
|
|
3751
3751
|
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
3752
3752
|
ref: searchInputRef,
|
|
3753
3753
|
onClick: e => {
|