-
Notifications
You must be signed in to change notification settings - Fork 798
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
bug: DOMAttributes
interface missing onTransitionStart
and onTransitionCancel
events
#4643
Comments
Thanks @nwhittaker! I was able to reproduce this with the provided repro case, and have labeled it to get ingested into our internal backlog. Thanks again! |
this commit adds function declarations for the following events: - [`onTransitionCancel`](https://developer.mozilla.org/en-US/docs/Web/API/Element/transitioncancel_event) - [`onTransitionRun`](https://developer.mozilla.org/en-US/docs/Web/API/Element/transitionrun_event) - [`onTransitionStart`](https://developer.mozilla.org/en-US/docs/Web/API/Element/transitionstart_event) note that `onTransitionCancel` was not natively supported by Chrome & Edge until v87. this version falls _after_ stencil's currently supported version of v79+ for both. this commit does not transpile code for the event/provide a polyfill for versions of Chrome/Edge released before 2020.11.17 fixes: #4643
@nwhittaker I've put up #4645, which should fix this issue. If you're able to, would you mind giving a dev-build of Stencil a try to help me verify the fix?
Thanks! |
@rwaskiewicz, I verified on my branch that the TypeScript errors clear up with that dev-build, thanks! |
Excellent, thanks! I'll queue this up for merge now, and should be going out in the next Stencil release |
this commit adds function declarations for the following events: - [`onTransitionCancel`](https://developer.mozilla.org/en-US/docs/Web/API/Element/transitioncancel_event) - [`onTransitionRun`](https://developer.mozilla.org/en-US/docs/Web/API/Element/transitionrun_event) - [`onTransitionStart`](https://developer.mozilla.org/en-US/docs/Web/API/Element/transitionstart_event) note that `onTransitionCancel` was not natively supported by Chrome & Edge until v87. this version falls _after_ stencil's currently supported version of v79+ for both. this commit does not transpile code for the event/provide a polyfill for versions of Chrome/Edge released before 2020.11.17 fixes: #4643
The fix associated with this issue has been included in this morning's 4.0.4 release. |
Prerequisites
Stencil Version
4.0.2
Current Behavior
Cannot use JSX to attach
transitioncancel
andtransitionstart
event handlers.Expected Behavior
Can use JSX to attach
transitionstart
andtransitioncancel
event handlers.System Info
System: node 18.16.1 Platform: darwin (22.6.0) CPU Model: Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz (16 cpus) Compiler: ~/my-first-stencil-project/node_modules/@stencil/core/compiler/stencil.js Build: 1690208707 Stencil: 4.0.2 😈 TypeScript: 5.0.4 Rollup: 2.42.3 Parse5: 7.1.2 Sizzle: 2.42.3 Terser: 5.19.1
Steps to Reproduce
nwhittaker/stencil
repo.bugs/jsx-events-transition
branch.npm start
and see TypeScript errors in terminalCode Reproduction URL
https://github.com/nwhittaker/stencil
Additional Information
Terminal output:
The text was updated successfully, but these errors were encountered: