vue-formulate icon indicating copy to clipboard operation
vue-formulate copied to clipboard

Select box placeholder option not shown on dropdown list?

Open titusdecali opened this issue 4 years ago • 2 comments

Describe the bug I used this package on a previous project and type="select" always showed the placeholder as the first option on the dropdown list of the select box. I tried the same for a different project and it now shows the first option as selected (although nothing has yet been selected) and the placeholder is not shown at all.

To Reproduce Although the docs say that the placeholder will be shown, the example also doesn't show the placeholder among the options. If you inspect the element, the placeholder is set as hidden https://vueformulate.com/guide/inputs/types/select/#select-2

CleanShot 2021-06-06 at 16 18 36@2x

Expected behavior I think choosing to show or hide the placeholder within the dropdown list options should be controlled via a prop on the formulate-input

Screenshots Current project: CleanShot 2021-06-06 at 16 05 29@2x

Previous project: CleanShot 2021-06-06 at 16 06 20@2x

titusdecali avatar Jun 06 '21 07:06 titusdecali

+1 on this, for an optional form user should be able to deselect option and choosable placeholder would be workaround

nsetyo avatar Jun 23 '21 03:06 nsetyo

+1 on this, for an optional form user should be able to deselect option and choosable placeholder would be workaround

Yes, it would be nice to also have a prop for allowing this option to be selected as nsetyo mentioned.

titusdecali avatar Jun 23 '21 07:06 titusdecali