Skip to content

Commit

Permalink
Ensure focus after paste
Browse files Browse the repository at this point in the history
  • Loading branch information
neilj committed Jul 14, 2016
1 parent c1eb254 commit aaf8487
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build/squire-raw.js
Expand Up @@ -4030,6 +4030,10 @@ proto.insertHTML = function ( html, isPaste ) {

this.setSelection( range );
this._updatePath( range, true );
// Safari sometimes loses focus after paste. Weird.
if ( isPaste ) {
this.focus();
}
} catch ( error ) {
this.didError( error );
}
Expand Down

0 comments on commit aaf8487

Please sign in to comment.