ivirabyan / jquery-mentions

Adds mentioning support to your text fields.
http://ivirabyan.github.io/jquery-mentions/
MIT License
114 stars 49 forks source link

Unselect problem in IE11 (Bug) #34

Closed Jubayer- closed 9 years ago

Jubayer- commented 9 years ago

Here is the steps to produce the bug: -- Just add a mention in textarea in IE11 and then type nothing -- Then remove the focus to somewhere else and focus in textarea again at the end of the text -- Now press space. You'll see the previous selected mention is unselected

ivirabyan commented 9 years ago

I just fixed related issue, please get the latest code and try it again. Tell me if the problem still exists.

Jubayer- commented 9 years ago

I think we have another problem now. Updated file is not working when you select from list. I don't see any background after selection. Will you check it?

ivirabyan commented 9 years ago

Yes, I broke the code in the last commit. Now it must work properly

Jubayer- commented 9 years ago

This issue is solved but another same type issue came up. (-_-'') For example after selecting alex and then typing something before alex will make it unselected. This didn't happen before.

Appreciates your works. Let me know after solving this one and thanks for updating fast.

ivirabyan commented 9 years ago

Such problems may come up, since I completely changed mechanics of tracking mentions. So I need to debug it a little. I can't reproduce it in chrome though, I'll try IE11 bit later.

Jubayer- commented 9 years ago

Thanks for the reply. Yes it does need debugging. I think i found a way to produce one problem in chrome: -- From your demo example. At 1st delete all texts from text area -- Now select alex -- now press the key left arrow once and then the right arrow once. You'll see the caret is gone. and if you type something then alex will be unselected.

I'll let you know if i find any way to produce other problems

Thanks

Jubayer- commented 9 years ago

Alright it starts auto deselecting mentions after selecting from the list. Here is how: -- 1st select alex from list and set the caret posing before alex and press enter -- now typing anything will deselect alex. :)

Hope that'll help.

ivirabyan commented 9 years ago

For some reason I can't reproduce it in chrome. Still haven't tested it in IE

ivirabyan commented 9 years ago

Duplicate of issue #35