Skip to content

Commit 2aa8d15

Browse files
committed
Remove select IE11 fix
1 parent 26f5998 commit 2aa8d15

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
@@ -560,12 +560,7 @@ function diffElementNodes(
560560
// despite the attribute not being present. When the attribute
561561
// is missing the progress bar is treated as indeterminate.
562562
// To fix that we'll always update it when it is 0 for progress elements
563-
(inputValue !== dom[i] ||
564-
(nodeType == 'progress' && !inputValue) ||
565-
// This is only for IE 11 to fix <select> value not being updated.
566-
// To avoid a stale select value we need to set the option.value
567-
// again, which triggers IE11 to re-evaluate the select value
568-
(nodeType == 'option' && inputValue !== oldProps[i]))
563+
(inputValue !== dom[i] || (nodeType === 'progress' && !inputValue))
569564
) {
570565
setProperty(dom, i, inputValue, oldProps[i], namespace);
571566
}

0 commit comments

Comments
 (0)