l-min-components 1.0.949 → 1.0.956
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/package.json
CHANGED
|
@@ -96,7 +96,11 @@ const DropDownComponent = (props) => {
|
|
|
96
96
|
props?.inputPlaceHolder || "Select Dropdown"
|
|
97
97
|
}
|
|
98
98
|
type="text"
|
|
99
|
-
value={
|
|
99
|
+
value={
|
|
100
|
+
props?.findText
|
|
101
|
+
? props?.findText(props?.valueSelect?.name || selected?.name)
|
|
102
|
+
: props?.valueSelect?.name || selected?.name
|
|
103
|
+
}
|
|
100
104
|
onChange={(e) => {
|
|
101
105
|
setSearchParam(e.target.value);
|
|
102
106
|
}}
|
|
@@ -106,7 +110,13 @@ const DropDownComponent = (props) => {
|
|
|
106
110
|
) : (
|
|
107
111
|
// <p onClick={() => setDropdown(!dropdown)}>
|
|
108
112
|
<p onClick={handleDropdownToggle}>
|
|
109
|
-
|
|
113
|
+
{props?.findText
|
|
114
|
+
? props?.findText(
|
|
115
|
+
props?.valueSelect?.name ||
|
|
116
|
+
selected?.name ||
|
|
117
|
+
props?.inputPlaceHolder
|
|
118
|
+
)
|
|
119
|
+
: props?.valueSelect?.name ||
|
|
110
120
|
selected?.name ||
|
|
111
121
|
props?.inputPlaceHolder}
|
|
112
122
|
</p>
|