Skip to content

Commit

Permalink
fix(toolbarFieldRangedMonthly): ent-3507 disable selected options (#590)
Browse files Browse the repository at this point in the history
* toolbarFieldRangedMonthly, quick fix, string fails to match date
  • Loading branch information
cdcabrera committed Apr 26, 2021
1 parent 2aa4b3a commit 7e2a6de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ exports[`ToolbarFieldGranularity Component should handle selecting an option dir
]
}
placeholder="t(curiosity-toolbar.placeholder, {\\"context\\":\\"granularity\\"})"
selectedOptions="2018-08-01T00:00:00.000Z"
selectedOptions={null}
toggleIcon={null}
variant="single"
/>
Expand Down Expand Up @@ -391,7 +391,7 @@ exports[`ToolbarFieldGranularity Component should render a non-connected compone
]
}
placeholder="t(curiosity-toolbar.placeholder, {\\"context\\":\\"granularity\\"})"
selectedOptions="t(curiosity-toolbar.granularityRange, {\\"context\\":\\"current\\"})"
selectedOptions={null}
toggleIcon={null}
variant="single"
/>
Expand Down
1 change: 0 additions & 1 deletion src/components/toolbar/toolbarFieldRangedMonthly.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ const ToolbarFieldRangedMonthly = ({ options, t, value, viewId }) => {
aria-label={t('curiosity-toolbar.placeholder', { context: 'granularity' })}
onSelect={onSelect}
options={updatedOptions}
selectedOptions={updatedValue}
placeholder={t('curiosity-toolbar.placeholder', { context: 'granularity' })}
maxHeight={250}
/>
Expand Down

0 comments on commit 7e2a6de

Please sign in to comment.