Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

A potential solution to issues with Google Places Autocomplete #347

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/fastclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@
*/
this.tapTimeout = options.tapTimeout || 700;

/**
* A node to exclude based on className. Alternative to manually applying needsclick.
*
* @type string
*/
this.excludeNode = options.excludeNode || null;

if (FastClick.notNeeded(layer)) {
return;
}
Expand Down Expand Up @@ -250,7 +257,7 @@
return true;
}

return (/\bneedsclick\b/).test(target.className);
return ((/\bneedsclick\b/).test(target.className) || (new RegExp(this.excludeNode).test(target.className)));
};


Expand Down