playbook_ui 12.31.0.pre.alpha.multilevelnopillsdesigns944 → 12.31.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39c902d86406eacebfff3d633131660ecfdaf57e1d7b0f9480e1e9090e958501
|
4
|
+
data.tar.gz: a617f4fda7d3e3ed0b6de62504710c4962cdb70c3d59877057fe082262aec1f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00f0e49f95ed90f0e6a1567cb4ff0448c48e77580f3c7ee02dcdbb060e3a472527007f9026f5486508c7ab3bb12d2a3b5d189605549ee1803c91c377a81ec671
|
7
|
+
data.tar.gz: b37a1a86dc19ff217a582a712161b34b6e4f7875c0b35a040b2c55030c61aa7076ee909555a9df9d4100e2441b9459ea0b391d0dabfec25cd89b191e96148d55
|
@@ -250,15 +250,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
250
250
|
}
|
251
251
|
}
|
252
252
|
|
253
|
-
const itemsSelectedLength = () => {
|
254
|
-
let items
|
255
|
-
if (returnAllSelected && returnedArray && returnedArray.length) {
|
256
|
-
items = returnedArray.length
|
257
|
-
} else if (!returnAllSelected && defaultReturn && defaultReturn.length) {
|
258
|
-
items = defaultReturn.length
|
259
|
-
}
|
260
|
-
return items
|
261
|
-
}
|
262
253
|
//rendering formattedData to UI based on typeahead
|
263
254
|
const renderNestedOptions = (items: { [key: string]: any }[]) => {
|
264
255
|
return (
|
@@ -355,9 +346,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
355
346
|
onChange={(e) => {
|
356
347
|
setFilterItem(e.target.value)
|
357
348
|
}}
|
358
|
-
placeholder=
|
359
|
-
`${itemsSelectedLength()} ${itemsSelectedLength() === 1 ? 'item' : 'items'} selected`
|
360
|
-
) : ("Start typing...")}
|
349
|
+
placeholder='Start typing...'
|
361
350
|
value={filterItem}
|
362
351
|
onClick={() => setIsClosed(false)}
|
363
352
|
/>
|