Skip to content

Commit 26d9131

Browse files
committed
Remove select IE11 fix
1 parent 7328f91 commit 26d9131

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

0 commit comments

Comments
 (0)