Fix defaultValue in FilterBar
This commit is contained in:
parent
94f5f69412
commit
908e807f00
2 changed files with 3 additions and 6 deletions
|
|
@ -69,8 +69,7 @@ const FilterBar = (props: Props) => {
|
|||
<div className={classes}>
|
||||
{props.children}
|
||||
<Select
|
||||
defaultValue="-1"
|
||||
trigger={'All elements'}
|
||||
defaultValue={`${props.element}`}
|
||||
open={elementOpen}
|
||||
onChange={elementSelectChanged}
|
||||
onClick={openElementSelect}
|
||||
|
|
@ -110,7 +109,7 @@ const FilterBar = (props: Props) => {
|
|||
/>
|
||||
|
||||
<Select
|
||||
defaultValue="-1"
|
||||
defaultValue={`${props.recency}`}
|
||||
trigger={'All time'}
|
||||
open={recencyOpen}
|
||||
onChange={recencySelectChanged}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ const RaidDropdown = React.forwardRef<HTMLSelectElement, Props>(
|
|||
|
||||
// Enable changing select value
|
||||
function handleChange(value: string) {
|
||||
console.log(value)
|
||||
if (props.onChange) props.onChange(value)
|
||||
|
||||
if (raids) {
|
||||
|
|
@ -128,8 +127,7 @@ const RaidDropdown = React.forwardRef<HTMLSelectElement, Props>(
|
|||
|
||||
return (
|
||||
<Select
|
||||
defaultValue={props.defaultRaid}
|
||||
trigger={'Select a raid...'}
|
||||
defaultValue={props.currentRaid}
|
||||
placeholder={'Select a raid...'}
|
||||
open={open}
|
||||
onClick={openRaidSelect}
|
||||
|
|
|
|||
Loading…
Reference in a new issue