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

Added readOnly option #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jjwilliams
Copy link

This will make the input box readonly, and remove the tagCloseIcon from being rendered.

Fairly simple - I might be missing something. Wasn't sure if I should .attr('readonly', true) the field or disable the field. Readonly will still get posted, although I'm not sure why a tagManager's textbox would need to be posted back.

@jjwilliams
Copy link
Author

Also I don't know if this is needed:
opts.backspace = [];//clear out the ability to delete on backspace chars
I guess I have visions of rogue browsers allowing users to type into readonly fields.

@johnnyshields
Copy link
Collaborator

Why show the input box at all if in read only mode?

@jjwilliams42
Copy link

Good point, I could just hide it altogether. I'll look into that tomorrow.

@jjwilliams
Copy link
Author

Hid the textbox if readOnly

@hposkanzer hposkanzer mentioned this pull request Apr 18, 2014
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

Successfully merging this pull request may close these issues.

3 participants