custom plugin, popup not opening when its inside a modal

i'm using this plugin https://github.com/nolanlawson/emoji-picker-element/tree/master to build a custom field called EmojiPicker. It's an input which only accepts ONE emoji, no text. when in EditForm it works fine, but not when the field is in a modal form... I'm not sure how to deal with it. No errors in the console, just the popup not opening. I'd opened a mini repo to test it. https://github.com/xiaoCreagia/emoji-picker-test credentials are: [email protected] admin please, any idea??
GitHub
GitHub - nolanlawson/emoji-picker-element: A lightweight emoji pick...
A lightweight emoji picker for the modern web. Contribute to nolanlawson/emoji-picker-element development by creating an account on GitHub.
GitHub
GitHub - xiaoCreagia/emoji-picker-test
Contribute to xiaoCreagia/emoji-picker-test development by creating an account on GitHub.
Solution:
add this in your ListUsers.php ```php public function mount(): void {...
Jump to solution
2 Replies
tesse05
tesse05OP4mo ago
No description
No description
No description
No description
Solution
LeandroFerreira
LeandroFerreira4mo ago
add this in your ListUsers.php
public function mount(): void
{
parent::mount();

FilamentView::registerRenderHook(
PanelsRenderHook::SCRIPTS_AFTER,
fn (): string => Blade::render('@vite([\'resources/js/back.js\'])')
);
}
public function mount(): void
{
parent::mount();

FilamentView::registerRenderHook(
PanelsRenderHook::SCRIPTS_AFTER,
fn (): string => Blade::render('@vite([\'resources/js/back.js\'])')
);
}
Want results from more Discord servers?
Add your server