mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-04 16:08:54 +00:00
further simplification
This commit is contained in:
@@ -6,7 +6,7 @@ const Combobox = ({
|
||||
id = '',
|
||||
className = '',
|
||||
trigger = 'hover',
|
||||
default: defaultValue = '',
|
||||
defaultValue = '',
|
||||
placeholder = '',
|
||||
tooltip = '',
|
||||
autoSuggest = {
|
||||
@@ -15,7 +15,7 @@ const Combobox = ({
|
||||
filterOn : [] // should allow as array to filter on multiple attributes, or even custom filter
|
||||
},
|
||||
valuePatterns = /.+/,
|
||||
options,
|
||||
options = [],
|
||||
...props
|
||||
})=>{
|
||||
const dropdownRef = useRef(null);
|
||||
|
||||
@@ -219,7 +219,7 @@ const MetadataEditor = ({
|
||||
<Combobox trigger='click'
|
||||
id='combobox-themes'
|
||||
className='themes-dropdown'
|
||||
default={currentThemeDisplay}
|
||||
defaultValue={currentThemeDisplay}
|
||||
placeholder='Select from below, or enter the Share URL or ID of a brew with the meta:theme tag'
|
||||
onSelect={(value)=>handleTheme(value)}
|
||||
onEntry={(e)=>{
|
||||
@@ -261,7 +261,7 @@ const MetadataEditor = ({
|
||||
<Combobox trigger='click'
|
||||
id='combobox-language'
|
||||
className='language-dropdown'
|
||||
default={metadata.lang || ''}
|
||||
defaultValue={metadata.lang || ''}
|
||||
placeholder='en'
|
||||
onSelect={(value)=>handleLanguage(value)}
|
||||
onEntry={(e)=>{
|
||||
|
||||
@@ -131,7 +131,7 @@ const TagInput = ({ id, tooltip, label, valuePatterns, values = [], unique = tru
|
||||
id={id}
|
||||
trigger='click'
|
||||
className='tagInput-dropdown'
|
||||
default=''
|
||||
defaultValue=''
|
||||
placeholder={placeholder}
|
||||
options={label === 'tags' ? suggestionOptions : []}
|
||||
tooltip={tooltip}
|
||||
|
||||
Reference in New Issue
Block a user