Merge pull request #110 from SteveClement/safari_option_fix

chg: [html] replaced option with data tag
This commit is contained in:
Andrew Erlikh 2024-09-02 14:59:28 +07:00 committed by GitHub
commit 74b1b3cb2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ function createHTML(addr, i) {
}
// Needs option to use value in js
let name = `<option id="name${addr.ID}" value="${addr.Name}">${addr.Name}</option>`;
let name = `<data id="name${addr.ID}" value="${addr.Name}">${addr.Name}</data>`;
if (edit == 1) {
name = `<input id="name${addr.ID}" onchange="editForm(${addr.ID},'')" type="text" class="form-control" value="${addr.Name}">`;
}