ywana-core8 0.0.748 → 0.0.750
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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +6 -1
package/package.json
CHANGED
package/src/html/textfield.js
CHANGED
@@ -180,7 +180,12 @@ export const DropDown = (props) => {
|
|
180
180
|
if (canShow) {
|
181
181
|
const filterActive = predictive === true && label && label.length > 0
|
182
182
|
const items = filterActive ? options.filter(option => option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0) : options
|
183
|
-
const lis = items.map(option =>
|
183
|
+
const lis = items.map(option => (
|
184
|
+
<li key={option.value} value={option.value} onClick={() => select(option.value)}>
|
185
|
+
{option.icon ? <Icon icon={option.icon} size="small" /> : ''}
|
186
|
+
<Text>{option.label}</Text>
|
187
|
+
</li>
|
188
|
+
))
|
184
189
|
return <menu><ul>{lis}</ul></menu>
|
185
190
|
} else {
|
186
191
|
return null
|