Closed kamcio181 closed 5 months ago
Hello I am using html like below. Click listener on button is registered twice if I use 'unwrap' on outer component. Could you help me solve the issue?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ScoreBoard</title> <script src="https://unpkg.com/@vimesh/ui"></script> <script src="https://unpkg.com/alpinejs" defer></script> </head> <body class="w-screen h-screen" x-data> <vui-outer></vui-outer> <template x-component.unwrap="button"> <button type="button"><slot></slot></button> </template> <template x-component.unwrap="outer"> <div> <vui-button @click.stop="console.log('clicked')">Click me</vui-button> </div> </template> </body> </html>
It is fixed in the latest version.
Great, thanks
Hello I am using html like below. Click listener on button is registered twice if I use 'unwrap' on outer component. Could you help me solve the issue?