Skip to content

Commit f181fca

Browse files
committed
Remove select IE11 fix
1 parent 84bee25 commit f181fca

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

TODO.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- https://github.com/preactjs/preact/pull/4362
2+
- https://github.com/preactjs/preact/pull/4358
3+
- https://github.com/preactjs/preact/pull/4361
4+
- https://github.com/preactjs/preact/pull/4460

src/diff/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -580,12 +580,7 @@ function diffElementNodes(
580580
// despite the attribute not being present. When the attribute
581581
// is missing the progress bar is treated as indeterminate.
582582
// To fix that we'll always update it when it is 0 for progress elements
583-
(inputValue !== dom[i] ||
584-
(nodeType == 'progress' && !inputValue) ||
585-
// This is only for IE 11 to fix <select> value not being updated.
586-
// To avoid a stale select value we need to set the option.value
587-
// again, which triggers IE11 to re-evaluate the select value
588-
(nodeType == 'option' && inputValue != oldProps[i]))
583+
(inputValue !== dom[i] || (nodeType === 'progress' && !inputValue))
589584
) {
590585
setProperty(dom, i, inputValue, oldProps[i], namespace);
591586
}

0 commit comments

Comments
 (0)