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

Hide placeholder if tags exist #495

Closed
kerolloz opened this issue Apr 28, 2020 · 1 comment
Closed

Hide placeholder if tags exist #495

kerolloz opened this issue Apr 28, 2020 · 1 comment
Labels

Comments

@kerolloz
Copy link
Contributor

kerolloz commented Apr 28, 2020

For example
I want the value of the placeholder to be an empty string, when a tag is added.

I tried the following

tagify.on('add', e => {
  tagify.settings.placeholder = '';
  e.detail.tagify.settings.placeholder = '';
});

but it didn't work.

@yairEO
Copy link
Owner

yairEO commented Apr 28, 2020

You can do it with CSS only (demo page)

.tagify__tag + .tagify__input::before{
  display:none
}

Put this somewhere in your project's CSS (it depends how you manage your CSS files)

@yairEO yairEO closed this as completed Apr 28, 2020
@yairEO yairEO changed the title How to change placholder value? Hide placeholder if tags exist Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants