Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
3abkerim opened this issue Jul 3, 2024 · 0 comments

Comments

@3abkerim
Copy link

3abkerim commented Jul 3, 2024

Fixed

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

in webpack.config.js

Prerequisites

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

💥 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 !

  • What is the expected behavior?

this input is working fine

Capture d'écran 2024-07-03 170741

  • What is happening instead?

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.

  • What error message are you getting?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant