Releases
v1.0.19
v1.0.19 (2020-04-26)
🌱 Internal
list
, list-item
button
select
#165 refactor: Change inputs from uncontrolled to controlled. (@moonflare )
#165 refactor: Changes defaultValue
selection functionality (@moonflare )
#165 refactor: Adds deprecation message for the usage of options.selected
field (@moonflare )
search-dropdown
#165 a11y: Adds initial tab navigation. (We can navigate with tab, open the dropdown and select an item by pressing Enter) (@moonflare )
🐛 Bugfix
⚠️ Deprecation
select
The usage of options.selected
field has been deprecated in favor of the defaultValue
prop.
const options = [
{ text : "Option 1" , value : "value1" , selected : true } ,
{ text : "Option 2" , value : "value2" } ,
{ text : "Option 3" , value : "value3" }
] ;
< Select
options = { options }
/ >
const options = [
{ text : "Option 1" , value : "value1" } ,
{ text : "Option 2" , value : "value2" } ,
{ text : "Option 3" , value : "value3" }
] ;
const initialValue = options [ 0 ] . value ;
< Select
defaultValue = { initialValue }
options = { options }
/ >
You can’t perform that action at this time.