You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow instructions in above repo to build locally
Expected Results
Code compiles
Actual Results
Code does not compile with errors such as:
packages/tab-scroller/src/mwc-tab-scroller.ts:57:18 - error TS2345: Argument of type '{ passive: boolean; }' is not assignable to parameter of type 'EventListenerOptions'.
Object literal may only specify known properties, and 'passive' does not exist in type 'EventListenerOptions'.
57 @eventOptions({passive: true})
Browsers Affected
Not applicable
Versions
lit-element: v0.14.0
The text was updated successfully, but these errors were encountered:
Fixes#325.
Despite this supposedly being in TypeScirpt (microsoft/TypeScript#9548), it's not, so we augment the type here.
Also adds tests for `once` and `passive` options.
* Adds passive/once to EventListenerOptions type
Fixes#325.
Despite this supposedly being in TypeScirpt (microsoft/TypeScript#9548), it's not, so we augment the type here.
Also adds tests for `once` and `passive` options.
* Update changelog and format.
* Update to use `AddEventListenerOptions`
* Fix passive event listener test so that it's actually skipped on unsupported browsers.
The current
@eventOptions
decorator doesn't allow passive to be set so the following will fail to compile.Live Demo
Attempt to build the material-components-web-components project.
Steps to Reproduce
Follow instructions in above repo to build locally
Expected Results
Code compiles
Actual Results
Code does not compile with errors such as:
Browsers Affected
Not applicable
Versions
The text was updated successfully, but these errors were encountered: