yairEO / tagify

🔖 lightweight, efficient Tags input component in Vanilla JS / React / Angular / Vue
https://yaireo.github.io/tagify/
Other
3.48k stars 429 forks source link

Tagify Initialization Issue in Symfony Application with Inconsistent Behavior Across Form Fields #1359

Open 3abkerim opened 2 months ago

3abkerim commented 2 months ago

Fixed

by adding .addStyleEntry( 'tagify-style', './node_modules/@yaireo/tagify/dist/tagify.css', )

in webpack.config.js

Prerequisites

💥 Demo Page

https://jsbin.com/nirosul/1/edit?html,js,output

Explanation

I am experiencing inconsistent behavior when using Tagify in my Symfony application. I attempted to initialize Tagify on two different inputs across two separate pages. While one input works as expected, the other input displays an additional input field above it and incorrectly shows the value. Thank you in advance !

this input is working fine

Capture d'écran 2024-07-03 170741

but this one isn't

Capture d'écran 2024-07-03 170659 Capture d'écran 2024-07-03 170713

NB: once i add the css cdn link, it fixes the problem, so the problem is caused by the import.