Skip to content

Commit 226d275

Browse files
authored
add drop down and change focus based on feedback (#2813)
Signed-off-by: sharpd <[email protected]>
1 parent 61927c2 commit 226d275

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

web/src/components/datasets/DatasetTags.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ const DatasetTags: React.FC<IProps> = (props) => {
189189
multiple
190190
disableCloseOnSelect
191191
id='dataset-tags'
192-
sx={{ flex: 1 }}
193-
limitTags={!datasetField ? 5 : 4}
192+
sx={{ flex : 1, width: datasetField ? 494 : 'auto' }}
193+
limitTags={!datasetField ? 8 : 6}
194194
autoHighlight
195195
disableClearable
196196
disablePortal
@@ -252,6 +252,9 @@ const DatasetTags: React.FC<IProps> = (props) => {
252252
options={tagData.map((option) => option.name)}
253253
autoSelect
254254
freeSolo
255+
fullWidth
256+
autoFocus
257+
forcePopupIcon
255258
onChange={handleTagDescChange}
256259
renderInput={(params) => (
257260
<TextField
@@ -260,7 +263,6 @@ const DatasetTags: React.FC<IProps> = (props) => {
260263
autoFocus
261264
margin='dense'
262265
id='tag'
263-
fullWidth
264266
variant='outlined'
265267
InputLabelProps={{
266268
...params.InputProps,
@@ -273,7 +275,6 @@ const DatasetTags: React.FC<IProps> = (props) => {
273275
Description
274276
</MQText>
275277
<TextField
276-
autoFocus
277278
multiline
278279
id='tag-description'
279280
name='tag-description'

0 commit comments

Comments
 (0)