playbook_ui_docs 14.20.0.pre.alpha.PLAY2127dropdowncloseonselectionpropreact8006 → 14.20.0.pre.alpha.PLAY2140upgraderailsdependency8003
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
- data/dist/playbook-doc.js +1 -1
- metadata +1 -3
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_close_on_select.jsx +0 -42
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_close_on_select.md +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.20.0.pre.alpha.
|
4
|
+
version: 14.20.0.pre.alpha.PLAY2140upgraderailsdependency8003
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -816,8 +816,6 @@ files:
|
|
816
816
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
|
817
817
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx
|
818
818
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.md
|
819
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_close_on_select.jsx
|
820
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_close_on_select.md
|
821
819
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
|
822
820
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
|
823
821
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Dropdown from '../../pb_dropdown/_dropdown'
|
3
|
-
|
4
|
-
const DropdownCloseOnSelect = (props) => {
|
5
|
-
|
6
|
-
const options = [
|
7
|
-
{
|
8
|
-
label: "United States",
|
9
|
-
value: "United States",
|
10
|
-
},
|
11
|
-
{
|
12
|
-
label: "Canada",
|
13
|
-
value: "Canada",
|
14
|
-
},
|
15
|
-
{
|
16
|
-
label: "Pakistan",
|
17
|
-
value: "Pakistan",
|
18
|
-
}
|
19
|
-
];
|
20
|
-
|
21
|
-
|
22
|
-
return (
|
23
|
-
<div>
|
24
|
-
<Dropdown
|
25
|
-
closeOnSelection={false}
|
26
|
-
label="Default"
|
27
|
-
options={options}
|
28
|
-
{...props}
|
29
|
-
/>
|
30
|
-
<br />
|
31
|
-
<Dropdown
|
32
|
-
closeOnSelection={false}
|
33
|
-
label="Multi Select"
|
34
|
-
multiSelect
|
35
|
-
options={options}
|
36
|
-
{...props}
|
37
|
-
/>
|
38
|
-
</div>
|
39
|
-
)
|
40
|
-
}
|
41
|
-
|
42
|
-
export default DropdownCloseOnSelect
|
@@ -1 +0,0 @@
|
|
1
|
-
By default, the dropdown menu will close when a selection is made. You can prevent this behavior by using the `closeOnSelection` prop, which will leave the menu open after a selection is made when set to 'false'.
|