twilio / authy-form-helpers

Authy javascripts and css file to help create quick forms for the authy api
83 stars 39 forks source link

placeholder attr not working for country code input #18

Closed deequez closed 8 years ago

deequez commented 9 years ago

In version 2.3, even though I've included placeholder=Country in my select element, the placeholder text is not showing up in the browser.

Here's my html: <select id='authy-countries' name='user[country_code]' placeholder='Country'></select>

Here is the DOM: image

Here it is rendered in the browser: image

chaadow commented 9 years ago

Hi @deegill, it's just that by default it displays USA, but if you remove it manually, you will see that your placeholder is taken into account. In the readme, there is a section where you can set the default value. So I think if you set it to an empty string "", your placeholder will be displayed

moisesvw commented 8 years ago

@deegill #20 the placeholder behavior will be as you mentioned