A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/63b8ac0 below:

ios devices do not trigger click events on 'non-clickable' eleme… · vuematerial/vue-material@63b8ac0 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+4

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+4

-1

lines changed Original file line number Diff line number Diff line change

@@ -2,7 +2,10 @@ export default (el, eventName, observerFn, options) => {

2 2

function killObserver () {

3 3

el.removeEventListener(eventName, observerFn)

4 4

}

5 - 5 + 6 +

//fix click event for ios devices: https://stackoverflow.com/questions/3705937/document-click-not-working-correctly-on-iphone-jquery/17490775

7 +

eventName && eventName.indexOf('click') >= 0 && /iP/i.test(navigator.userAgent) && (el.style.cursor = 'pointer');

8 +

//

6 9

el.addEventListener(eventName, observerFn, options || false)

7 10 8 11

return {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4