javascript - Text input fields sometimes not responding because of labels -


i'm making website using materializecss framework , encouraged bug inputs not responding correctly.

this happens when clicking example on first input, , targeting higher part of second input. happens first input still being clicked.

it seems

 <label>name1</label> 

are causing it. there way solve problem?

here example.

you used same id (input_text) every input, id unique, try using different id every input , link each label's for attribute id.

here's fixed jsfiddle


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -