diff --git a/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/Filter.tsx b/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/Filter.tsx index 73bb0613167..fb807206218 100644 --- a/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/Filter.tsx +++ b/public/app/plugins/datasource/azuremonitor/components/TracesQueryEditor/Filter.tsx @@ -155,8 +155,6 @@ const Option = (props: React.PropsWithChildren) => { }; return ( - // TODO: fix keyboard a11y - // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
) => { aria-label="Select option" title={data.title} onClick={onClickMultiOption} + onKeyDown={onClickMultiOption} + role="checkbox" + aria-checked={isSelected} + tabIndex={0} >
@@ -263,7 +265,12 @@ const Filter = ( loadOptions={loadOptions} isLoading={loading} onOpenMenu={loadOptions} - onChange={(e: Array>) => setSelected(e)} + onChange={(e: Array>) => { + setSelected(e); + if (e.length === 0) { + onFieldChange('filters', item, selected, onChange); + } + }} width={35} defaultOptions={values} isClearable