Skip to content

Commit

Permalink
Don't show native form controls on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredearp committed May 3, 2018
1 parent c866f54 commit 3fee69f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/runtime/less/ts-forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,21 @@
}
}

// Touch device specials .......................................................

/**
* Hide the native SELECT and INPUT type=date on touch devices so that the native
* controls won't appear whenever you touch the screen in their general vicinity.
* This is known to be a problem in Safari on iOS in particular. Note that this
* must happen on touch devices only, otherwise we break keyboard TAB navigation.
*/
.ts-device-touch {
.ts-dateinput,
.ts-select {
display: none !important;
}
}

// Switches ....................................................................

.ts-form {
Expand Down

0 comments on commit 3fee69f

Please sign in to comment.