TangoDev-it / filament-emoji-picker

Add an emoji picker to your Filament input fields
MIT License
11 stars 2 forks source link

[Bug]: Stops working when used in chat textarea #2

Closed gavinhewitt closed 2 days ago

gavinhewitt commented 1 month ago

What happened?

Hi, first of all thank you for this plugin!

I may be using it as not intended, but I'm attaching it to a chat textarea. It works perfectly, the emoji is inserted into the textarea. However, if you click the 'open popup' button a second time the console displays this error:

image

Any idea what could be causing it?

How to reproduce the bug

See above

Package Version

latest

PHP Version

8.3

Laravel Version

11

Which operating systems does with happen with?

macOS

Notes

No response

manugando commented 3 weeks ago

Hi! Thanks for reporting the issue, can you please provide the code that you use to initialize the textarea with the emoji picker? Thanks!

jeffrey-betrnk commented 2 weeks ago

I had the same issue. This is my sample code.

  Forms\Components\Textarea::make('message')
      ->hintAction(EmojiPickerAction::make('emoji-messagge'))
      ->label('Text Message')
      ->columnSpanFull()
      ->rows(8),
manugando commented 2 weeks ago

Hi, thanks for reporting! Could you please try to update to the latest version (1.0.3) that was released few days ago? That release fixed a very similar issue (#3). Let me know if the problem is solved!

jeffrey-betrnk commented 2 weeks ago

@manugando It works. Thank you so much

manugando commented 2 weeks ago

@gavinhewitt could you try to update to the latest version (1.0.3) to see if your issue is solved too? Thanks!

gavinhewitt commented 2 weeks ago

@gavinhewitt could you try to update to the latest version (1.0.3) to see if your issue is solved too? Thanks!

Thank you so much! I'm on holiday with a really sucky connection :( I'll report back when I have better access!

gavinhewitt commented 2 days ago

@manugando Thank you, works!