bndw / wifi-card

📶 Print a QR code for connecting to your WiFi (wificard.io)
https://wificard.io
MIT License
6.58k stars 460 forks source link

Multiple form field elements in the same form have the same id attribute value. This might prevent the browser from correctly autofilling the form #288

Open olekstomek opened 2 months ago

olekstomek commented 2 months ago

In the console of my we browser for https://wificard.io/ website I see message:

Duplicate form field id in the same form Multiple form field elements in the same form have the same id attribute value. This might prevent the browser from correctly autofilling the form. To fix this issue, use unique id attribute values for each form field.

It is about input for WiFi network name (selector #ssid) and input for password (selector #password). This doesn't seem to be a serious problem until we change the additional cards to print (selector #TextInputField-2) field to a larger value, say 99 or set big value like 999. Then web browser (and website) has lags and it is possible not response: not responding

The problem is because number of elements in the same form have the same id attribute value.

I think this is related to https://github.com/bndw/wifi-card/pull/275

ofostier commented 4 weeks ago

Hi there PR is in progress waiting for validation Increment field id in the print area

295