We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to control enable/disable on:tap, but:
<script> let on = View.prototype.addEventListener View.prototype.addEventListener = function (arg: string | GestureTypes, callback: (data: EventData) => void, thisArg?: any) { console.log(this, arg, callback) on.call(this, arg, callback, thisArg) } let disabled = true $: handleTap = disabled ? undefined : () => { console.log('tapped') } </script> <flexboxLayout on:tap={handleTap}>
why handleTap is undefined, but still call addEventListener.
undefined
The text was updated successfully, but these errors were encountered:
@wvq alternatively you can use isUserInteractionEnabled https://stackoverflow.com/questions/41468742/nativescript-angular-2-disable-background-tap-events
isUserInteractionEnabled
Sorry, something went wrong.
No branches or pull requests
I want to control enable/disable on:tap, but:
why handleTap is
undefined
, but still call addEventListener.The text was updated successfully, but these errors were encountered: