File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/shared/widget-plugin-filtering/src/controls/tag-picker Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -63,8 +63,12 @@ export const TagPicker = observer(function TagPicker(props: TagPickerProps): Rea
63
63
data-empty = { props . empty ? true : undefined }
64
64
style = { props . style }
65
65
onClick = { event => {
66
- if ( ! isOpen && ( event . target === event . currentTarget || event . target === inputContainerRef . current ) ) {
67
- openMenu ( ) ;
66
+ if ( event . target === event . currentTarget || event . target === inputContainerRef . current ) {
67
+ if ( ! isOpen ) {
68
+ openMenu ( ) ;
69
+ } else {
70
+ inputContainerRef . current ?. querySelector ( "input" ) ?. focus ( ) ;
71
+ }
68
72
}
69
73
} }
70
74
>
@@ -98,7 +102,7 @@ export const TagPicker = observer(function TagPicker(props: TagPickerProps): Rea
98
102
onBlur : props . onBlur ,
99
103
onFocus : props . onFocus ,
100
104
placeholder : props . empty ? props . inputPlaceholder : undefined ,
101
- ...getDropdownProps ( { preventKeyAction : isOpen } ) ,
105
+ ...getDropdownProps ( ) ,
102
106
"aria-describedby" : props . empty ? undefined : `${ helperText1 } ${ inputContainerId } `
103
107
} ) }
104
108
/>
You can’t perform that action at this time.
0 commit comments