mirror of
https://github.com/maputnik/editor.git
synced 2026-01-01 11:00:00 +00:00
Added default support to <EnumInput/>
This commit is contained in:
@@ -29,13 +29,13 @@ class EnumInput extends React.Component {
|
||||
if(options.length <= 3 && optionsLabelLength(options) <= 20) {
|
||||
return <MultiButtonInput
|
||||
options={options}
|
||||
value={value}
|
||||
value={value || this.props.default}
|
||||
onChange={onChange}
|
||||
/>
|
||||
} else {
|
||||
return <SelectInput
|
||||
options={options}
|
||||
value={value}
|
||||
value={value || this.props.default}
|
||||
onChange={onChange}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user