Replies: 1 comment 2 replies
-
I created a library that does this, maybe it will be useful to someone. It uses |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have made a function to open a solid component into a popup window
The problem is that when I open the new window the
<input />
field does not print anything to the console.By exploring the solid source code I've come across several ways to fix this, but every solution I found so far does not seem ottimal.
The first is using the "on:" prefix on the event
But it gives a compile-time error because "on:input" seems to not be recognized.
The second is to change
popup()
like soBut I would like to not have to manually put all my used events in the array passed to
delegateEvents()
AND basically to be able to pass anything to the function without having to worry.I then tried using the list of all the delegable events
But that would have added quite a lot of unneeded events.
So I tried to use the internal set containing the list of the currently delegated events on the main document
But it gives a compile-time error on "_$DX_DELEGATE" since it is internal.
I then tried using a
<Portal />
It does not work and gives warning ("computations created outside a
createRoot
orrender
will never be disposed").I then tried returning the
<Portal />
and include it to the normal treeNothing changes...
What I ended up doing is simply to disable delegated events on the
vite.config.ts
But it disable them globally, not only in the child window.
So I have a few questions:
Beta Was this translation helpful? Give feedback.
All reactions