
I have the following html:
If I select the first item I get the following in the console:
I assume there is a check for a value and if no value is found then it sets it to the selected value. However it should be checking for undefined instead.
Thanks!
<select name="attr_initiative_ability"> <option value="">—</option> <option value="strength" data-i18n="STR">Str</option> <option value="dexterity" data-i18n="DEX" selected>Dex</option> <option value="constitution" data-i18n="CON">Con</option> <option value="intelligence" data-i18n="INT">Int</option> <option value="wisdom" data-i18n="WIS">Wis</option> <option value="charisma" data-i18n="CHA">Cha</option> </select>
If I select the first item I get the following in the console:
FILLED IN A DEFAULT VALUE FOR initiative_abilityAnd then dexterity is re-selected. Though this only happens once.
I assume there is a check for a value and if no value is found then it sets it to the selected value. However it should be checking for undefined instead.
Thanks!