Select inside a button does not work in Firefox

Asked

Viewed 68 times

1

I have a select inside button as follows:

<button type="button" class="btn btn-primary"
                id="l_ns"
                data-toggle="button">
                Choose the N to be stage
        <select  id='n_selector'
                 class="btn btn-primary"
                 data-toggle="dropdown"
                 rel="tooltip"
                 data-placement="right"
                 aria-labelledby="dropdownMenun"
                 title="Choose the N to be staged"
                 data-bind="options: available_ns,
                    optionsCaption: 'Select...',
                    value: current_n,
                    event: { change: tnmChanged }">
        </select>
        </button>

Chromium works normally, but in Firefox it does not load the select values. When I remove the select from inside the button it loads the values, but with centralized alignment. Any hint?

Thank you

  • 2

    Semantically speaking, it doesn’t make sense to have a select within a button... I think you should fix that.

  • It’s the same div inside p. One day my CSS class inherited from p within the div and when I went to see it was that. Nor had called me that had a div within a p.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.