Created
December 18, 2016 12:24
-
-
Save is8r/02dc4557a9cae2a689e0787a5c663fc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.on('mount', function() { | |
var input = this.root.querySelector('input') | |
if('ontouchstart' in window) { | |
// タップイベントがある場合にはinput[type=date]に変更 | |
} else { | |
// タップイベントが無い場合にはPikadayプラグインを使用 | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment