Skip to content

Commit

Permalink
Fix double-selected bug
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 10, 2016
1 parent b7b9572 commit 06cdd43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Dom/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ private function setValue($value) {
if($optionList[$i]->value == $value) {
$optionList[$i]->setAttribute("selected", "");
}
else {
$optionList[$i]->removeAttribute("selected");
}
}
break;

Expand Down

0 comments on commit 06cdd43

Please sign in to comment.