-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update TemplateStamp event listen param types from Node to EventTarget. #5320
Conversation
Allows passing e.g. window.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis is failing, as GestureEventListeners
uses the same types and thus needs this change as well. I think this is a fine change nonetheless.
Fixed. Glad we're testing the types compile in CI now! |
Had to fix gestures.js too. We set |
lib/utils/gestures.js
Outdated
* @param {string} value Touch action value | ||
* @return {void} | ||
*/ | ||
export function setTouchAction(node, value) { | ||
if (HAS_NATIVE_TA) { | ||
if (HAS_NATIVE_TA && node instanceof Node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a check for Element
to ensure the style property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (HTMLElement actually)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Allows passing e.g.
window
, which I assume is valid here?