Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Disabled attribute not inherited #326

Open
ghost opened this issue Oct 10, 2016 · 3 comments
Open

Disabled attribute not inherited #326

ghost opened this issue Oct 10, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 10, 2016

If the base-input for the taglist has the "disabled"-attribute set, this attribute is not inherited in taglist.
This can be tested in a simple example:
<input name="tags" id="tags" value="foo,bar,baz" disabled />
Then initialize the taglist
$('#tags').tagsInput();
Now the taglist can completely be edited, even if the data is not submitted because the base-input is marked as "disabled", this can be confusing.

@usamamashkoor
Copy link

@43r04 did you find a way to disable it.?

@ghost
Copy link
Author

ghost commented Aug 3, 2017

@usamamashkoor i simply made a workaround by filtering out disabled elements:
$(".taglist").not(":disabled").tagsInput();

@usamamashkoor
Copy link

Thanks @43r04

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant