Skip to content

Commit

Permalink
Fix possible unintended scrolling in onInput test
Browse files Browse the repository at this point in the history
Just like we fixed it in hyphen and localizednumber tests
  • Loading branch information
rejas committed Feb 4, 2020
1 parent f66afd6 commit 1134242
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions feature-detects/event/oninput.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ define(['Modernizr', 'docElement', 'createElement', 'testStyles', 'hasEvent'], f
var input = createElement('input');
var supportsOnInput;
input.setAttribute('oninput', 'return');
input.style.cssText = 'position:fixed;top:0;';

if (hasEvent('oninput', docElement) || typeof input.oninput === 'function') {
return true;
Expand Down

0 comments on commit 1134242

Please sign in to comment.