Skip to content

Nested dropdown #874

Answered by SiTaggart
pguptaDS asked this question in General
Discussion options

You must be logged in to vote

So the problem with the suggestion by the team is that the component referenced is a Menu, and not a form form control.

A menu performs an action https://paste.twilio.design/components/menu#performing-actions. It doesn't persist or set a value.

Because you are wanting to set a selected value inside a form, you must use a form control, of which a Combobox is one. It allows you to select and set a value to be persisted.

This is analogous to pre JavaScript days, old school web pages. You want to save the value selected by the user, to do so you would place html inputs inside a form element. Upon submitting the form you would save the values from the inputs. A Menu can't do this. It doesn't s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SiTaggart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants