@rc-component/select
Advanced tools
@@ -133,4 +133,4 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| } | ||
| } else if (triggerOpen) { | ||
| // Lazy should also close when click clear icon | ||
| } else if (triggerOpen && !multiple) { | ||
| // Lazy should also close when click clear icon in single select. | ||
| toggleOpen(false); | ||
@@ -137,0 +137,0 @@ } |
@@ -153,3 +153,3 @@ import * as React from 'react'; | ||
| id, | ||
| type: mode === 'combobox' ? 'text' : 'search', | ||
| type: 'text', | ||
| ...restProps, | ||
@@ -163,3 +163,3 @@ ref: inputRef, | ||
| autoFocus, | ||
| autoComplete: autoComplete || 'off', | ||
| autoComplete: autoComplete || 'new-password', | ||
| className: inputCls, | ||
@@ -166,0 +166,0 @@ disabled, |
@@ -92,6 +92,3 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
| const stretch = React.useMemo(() => { | ||
| if (isNumberPopupWidth) { | ||
| return null; | ||
| } | ||
| return popupMatchSelectWidth === false ? 'minWidth' : 'width'; | ||
| return popupMatchSelectWidth === false || isNumberPopupWidth ? 'minWidth' : 'width'; | ||
| }, [popupMatchSelectWidth, isNumberPopupWidth]); | ||
@@ -98,0 +95,0 @@ let mergedPopupStyle = popupStyle; |
@@ -142,4 +142,4 @@ "use strict"; | ||
| } | ||
| } else if (triggerOpen) { | ||
| // Lazy should also close when click clear icon | ||
| } else if (triggerOpen && !multiple) { | ||
| // Lazy should also close when click clear icon in single select. | ||
| toggleOpen(false); | ||
@@ -146,0 +146,0 @@ } |
@@ -162,3 +162,3 @@ "use strict"; | ||
| id, | ||
| type: mode === 'combobox' ? 'text' : 'search', | ||
| type: 'text', | ||
| ...restProps, | ||
@@ -172,3 +172,3 @@ ref: inputRef, | ||
| autoFocus, | ||
| autoComplete: autoComplete || 'off', | ||
| autoComplete: autoComplete || 'new-password', | ||
| className: inputCls, | ||
@@ -175,0 +175,0 @@ disabled, |
@@ -101,6 +101,3 @@ "use strict"; | ||
| const stretch = React.useMemo(() => { | ||
| if (isNumberPopupWidth) { | ||
| return null; | ||
| } | ||
| return popupMatchSelectWidth === false ? 'minWidth' : 'width'; | ||
| return popupMatchSelectWidth === false || isNumberPopupWidth ? 'minWidth' : 'width'; | ||
| }, [popupMatchSelectWidth, isNumberPopupWidth]); | ||
@@ -107,0 +104,0 @@ let mergedPopupStyle = popupStyle; |
+1
-1
| { | ||
| "name": "@rc-component/select", | ||
| "version": "1.7.1", | ||
| "version": "1.8.0", | ||
| "description": "React Select", | ||
@@ -5,0 +5,0 @@ "engines": { |
328828
-0.02%7957
-0.08%