Skip to content

Commit

Permalink
Merge pull request #33 from goldfire/ios-cursor
Browse files Browse the repository at this point in the history
hide native blue text cursor on iOS
  • Loading branch information
goldfire authored Oct 23, 2017
2 parents 53c471e + 4fec85d commit de32990
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CanvasInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
self._hiddenInput.style.opacity = 0;
self._hiddenInput.style.pointerEvents = 'none';
self._hiddenInput.style.zIndex = 0;
// hide native blue text cursor on iOS
self._hiddenInput.style.transform = 'scale(0)';

self._updateHiddenInput();
if (self._maxlength) {
self._hiddenInput.maxLength = self._maxlength;
Expand Down

0 comments on commit de32990

Please sign in to comment.