Skip to content
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

Including Chakra UI removes onClick handlers #998

Open
vinaybedre opened this issue Jan 26, 2023 · 0 comments
Open

Including Chakra UI removes onClick handlers #998

vinaybedre opened this issue Jan 26, 2023 · 0 comments

Comments

@vinaybedre
Copy link

Hello community,

I tried to use https://chakra-ui.com/ with fresh at https://github.com/vinaybedre/deno-fresh-chakra-ui/blob/main/islands/Counter.tsx with versions as below

deno 1.29.4 (release, aarch64-apple-darwin)
v8 10.9.194.5
typescript 4.9.4

The Chakra UI renders, but any onClick handlers defined anywhere in the same Island will just vanish away.

Have anyone else encountered the same issue? And how was it solved?

Also, as soon I run deno task start I encounter following warning

▲ [WARNING] This case clause will never be evaluated because it duplicates an earlier case clause [duplicate-case]

    deno:https://esm.sh/v104/@motionone/[email protected]/X-YS9AdHlwZXMvcmVhY3Q6cHJlYWN0L2NvbXBhdCxyZWFjdC1kb206cHJlYWN0L2NvbXBhdCxyZWFjdC9qc3gtcnVudGltZTpwcmVhY3QvY29tcGF0L2pzeC1ydW50aW1lLHJlYWN0OnByZWFjdC9jb21wYXQKZC9wcmVhY3RAMTAuMTEuMA/deno/dom.js:2:7271:
      2 │ ...?void 0:()=>t.animations.forEach(r=>r[e]())}},set:(t,e,n)=>{switch(e){case"currentTime":n=Ut.ms(n);case"currentTime":case"playbackRate":for(let r=0;r<t.animations.length;r  )t.animations[r][e]=n;return...
        ╵                                                                                                       ~~~~

  The earlier case clause is here:

    deno:https://esm.sh/v104/@motionone/[email protected]/X-YS9AdHlwZXMvcmVhY3Q6cHJlYWN0L2NvbXBhdCxyZWFjdC1kb206cHJlYWN0L2NvbXBhdCxyZWFjdC9qc3gtcnVudGltZTpwcmVhY3QvY29tcGF0L2pzeC1ydW50aW1lLHJlYWN0OnByZWFjdC9jb21wYXQKZC9wcmVhY3RAMTAuMTEuMA/deno/dom.js:2:7242:
      2 │ ...ault:return typeof n?.[e]>"u"?void 0:()=>t.animations.forEach(r=>r[e]())}},set:(t,e,n)=>{switch(e){case"currentTime":n=Ut.ms(n);case"currentTime":case"playbackRate":for(let r=0;r<t.animations.length;r ..

not sure if they are related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant