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

Incorrect Country Flag Display after Updating filament-phone-input to v3.1.1 #55

Closed
devSviat opened this issue Oct 31, 2024 · 4 comments

Comments

@devSviat
Copy link

After updating the filament-phone-input library from version 3.1.0 to 3.1.1, an issue has arisen with the display of country flags.

Steps to Reproduce:

  1. Update filament-phone-input to version 3.1.1.
  2. Check the display of country flags in the component.

Expected Behavior:

Country flags should display correctly.

Actual Behavior:

Country flags do not display correctly.

Screenshots:

  • Issue:
    issue

  • Correct Display:
    сorrect

Additional Information:

If changes in the filament-phone-input.css and filament-phone-input.js files are reverted, the flag display issue disappears, and they display correctly.

@ysfkaya
Copy link
Owner

ysfkaya commented Oct 31, 2024

Could you try this, clear your browser cache and check again

php artisan vendor:publish --tag="filament-phone-input-assets" --force

@devSviat
Copy link
Author

I ran the command and cleared the cache, but the problem persists. If I revert the updates to the filament-phone-input.css and filament-phone-input.js files in version 3.1.1, the data displays correctly.
bug

@ysfkaya
Copy link
Owner

ysfkaya commented Oct 31, 2024

Try this way too. intl-tel-input can also have this problem when assets are updated. Therefore you need to make sure that the assets are pulled back into your project correctly. I don't seem to have a problem right now

php artisan vendor:publish --tag="filament-phone-input-assets" --force ; php artisan filament:assets

@devSviat
Copy link
Author

devSviat commented Nov 1, 2024

It helped solve my problem, thank you very much!

php artisan vendor:publish --tag="filament-phone-input-assets" --force ; php artisan filament:assets

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

2 participants