Skip to content

Commit 06cdd43

Browse files
author
Greg Bowler
committed
Fix double-selected bug
1 parent b7b9572 commit 06cdd43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Dom/Node.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ private function setValue($value) {
394394
if($optionList[$i]->value == $value) {
395395
$optionList[$i]->setAttribute("selected", "");
396396
}
397+
else {
398+
$optionList[$i]->removeAttribute("selected");
399+
}
397400
}
398401
break;
399402

0 commit comments

Comments
 (0)