Skip to content

Commit

Permalink
fix: focus() moves scroll position (fix: #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
DongWoo Kim authored and seonim-ryu committed Feb 5, 2020
1 parent 50b9e06 commit f1b89e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions libs/squire/build/squire-raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -3204,10 +3204,11 @@ proto._updatePathOnEvent = function ( event ) {
// --- Focus ---

proto.focus = function () {
this._root.focus();

if ( isIE ) {
this._root.setActive();
this.fireEvent( 'focus' );
} else {
this._root.focus();
}

return this;
Expand Down
Loading

0 comments on commit f1b89e9

Please sign in to comment.