Skip to content

Commit

Permalink
remove fix for select in ie11
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Apr 29, 2024
1 parent 613cacc commit c32db3f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/diff/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,9 @@ function diffElementNodes(
// despite the attribute not being present. When the attribute
// is missing the progress bar is treated as indeterminate.
// To fix that we'll always update it when it is 0 for progress elements
(inputValue !== dom[i] ||
(nodeType === 'progress' && !inputValue) ||
// This is only for IE 11 to fix <select> value not being updated.
// To avoid a stale select value we need to set the option.value
// again, which triggers IE11 to re-evaluate the select value
(nodeType === 'option' && inputValue !== oldProps[i]))
inputValue !== dom[i] &&
nodeType === 'progress' &&
!inputValue
) {
setProperty(dom, i, inputValue, oldProps[i], false);
}
Expand Down

0 comments on commit c32db3f

Please sign in to comment.