Replies: 3 comments 4 replies
-
For tag-schemes only. We already force-case tag-schemes elswhere (userpage, for classname reasons). There is value in tags themselves retaining cases when displayed (though should be treated case-insensitively when searching etc) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Could we, maybe possibly consider the dumb idea of.. idk, changing the name of the file to tagInput.jsx? way easier to understand. |
Beta Was this translation helpful? Give feedback.
2 replies
-
also remember #3284 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Been looking at the StringArrayEditor component, otherwise known as the Tag Input, and considering options.
Relevant Issues:
#2333
#2335
#3462
#3166
#2357
Relevant PR:
#3469
Keyboard
,
|Enter
to submit tag and move to next inputEnter
|Space
to edit existing tagEscape
to cease editing and not save changes, and focus same tag,
|Enter
to submit change to existing tag, and focus "new tag" inputDelete
to remove an existing focused tagTab
to enter, and exit, tag container. When entering, focus the "new tag" inputMouse
onMouseUp
on existing tag to edit (single click to start editing)onMouseUp
on X button to delete existing tagonMouseUp
outside of existing tag while editing to submit without revisionLayout
Does there need to be 'undo' and 'submit' buttons when editing tags? I don't commonly see it, and I think the keyboard interaction is intuitive enough. moving your hand to the mouse to click 'submit' after each tag seems really cumbersome.
Regarding datalist: mantine.dev component library has a nice looking tag input, which features 'suggested tags' that can also be grouped. We can possibly incorporate our existing combobox component to do this.
Validation
&
.trim()
inputProps
Preview
Here is what I have so far. Not much styling yet.
Beta Was this translation helpful? Give feedback.
All reactions