Commit b30b604
authored
Allow fill_in to work with reactjs
React overrides the native setter of html input elements, so it doesn't fire change events when the value is changed. Because of that, for those input types where capybara uses javascript to change the value, change events are not fired as you'd expect when using react.
I've updated the code to use the un-overridden value setter instead as recommended here:
https://stackoverflow.com/a/46012210
I believe this shouldn't adversely affect apps using other javascript frameworks or no frameworks at all1 parent f857a99 commit b30b604
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
| |||
0 commit comments