lundi 27 août 2018

Input field not rendering dash

I'm noticing odd behavior with one of my inputs that I'm hoping someone could help with.

The below field is a dash delimited name. In this instance I called it jacobs-fishing-supply-birmingham. This is the exact value stored in my database. I'm rendering it to the page via the php framework laravel.

When I view the html rendered I can see that php did its job in creating the input field with the dash:

<input id="name" type="text" class="form-control" name="name" aria-label="" aria-describedby="" value="jacobs-fishing-supply-birmingham">

However the browser isn't renders all but one dash...

enter image description here

So then I added a second version of the field for debugging purposes and the dash appeared on the second instance of the field:

enter image description here

Has anyone seen this behavior before? The only thing I could think of is some sort of character set issue with that specific dash, however, it's strange that the dash appears when I add the same input a second time to the page.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire