-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cross browser assertions #1708
Conversation
d2858a0
to
4ae50c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some real MVP stuff here, the background things are my mistake ^^ sorry about that.
4ae50c3
to
ecdb96f
Compare
Only 1 remaining test to go 馃挭 |
Dug a little deeper on the IE11 select issue with a real IE11 instance. Turns out that using These are the other alternatives, but they all require iteration:
EDIT: Tried both approaches and the 2nd one is 7B smaller 馃帀 |
1df7c72
to
1f9bc90
Compare
1f9bc90
to
a945846
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find on the select bug for IE11, great work!!!
@marvinhagemeister Re: the I downloaded an IE11 Win7 VM from modern.ie and ran this jsbin in IE11 on that VM and |
@andrewiggins I'm happy to revert it if a smaller fix can be found 馃憤 Yup, tested it with the same VM and a real Win7 IE11 machine we have at work in our QA department. Just checked again and the linked jsbin works for both examples. What doesn't work is when the function App() {
const [v, update] = useState(0);
return (
<div>
<select value={v}>
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<button onClick={() => update(Math.floor(Math.random() * 4))}>Update</button>
</div>
);
}
render(<App />, document.body); Screencast of the bug: |
This PR attempts to fix all cross-browser issues and attempts to make the CI green again. Size increase is mainly due to the IE11 workaround for
select.value
.Adds馃槓+41 B
Adds
+35 B
馃檪