You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It ignores first <option> value. If selected option would be the first and it's value would not be equals to option value - garlic would ignore this and set unexisting value to <select>
The text was updated successfully, but these errors were encountered:
Garlic.js could set value that not exists for
<select>
tag.The bug is here - https://github.com/guillaumepotier/Garlic.js/blob/master/garlic.js#L191.
Case:
<option>
with value "1" from form.<select>
would be empty. Garlic.js would set "1" val to<select>
.And the bug is in the
detectConflict()
function. https://github.com/guillaumepotier/Garlic.js/blob/master/garlic.js#L221It ignores first
<option>
value. If selected option would be the first and it's value would not be equals to option value - garlic would ignore this and set unexisting value to<select>
The text was updated successfully, but these errors were encountered: