only add name attribute to pronouns input in JS, to ensure fallback works

This commit is contained in:
hazycora 2024-02-26 13:47:05 -06:00
parent 454ceb2ada
commit 1c551f923b
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ export function initUserSettings() {
// If JS is disabled, the page will show the custom input, as the dropdown requires JS to work.
// JS progressively enhances the input by adding a dropdown, but it works regardless.
pronounsCustom.removeAttribute('name');
pronounsInput.setAttribute('name', 'pronouns');
pronounsDropdown.style.display = '';
onPronounsDropdownUpdate();