podio / jquery-mentions-input

MIT License
985 stars 333 forks source link

Can't get onInputBoxInput function to be called #143

Closed cmrd-senya closed 9 years ago

cmrd-senya commented 9 years ago

Hi!

I'm working on https://github.com/diaspora/diaspora/issues/1851 and I'm currently trying to get mentions-input show a mention box within a comment box. While it works with the publisher textarea on the top of the diarpora page, it doesn't work with the comment box. The textarea tag gets replaced with a mentions-input-box, but onInputBoxInput doesn't get called when I type some text in the comment box. And initTextarea is called for every comment box on the page.

Here is how I changed diaspora for that: https://github.com/cmrd-senya/diaspora/commit/b68aac9a020b51a8b4f74ed70a7702e486cdd9ee

Couldn't you please help me to find, what am I lacking to make it work? Why onInputBoxInput doesn't get called, event though elmInputBox.bind('input', onInputBoxInput) is called for the element?

cmrd-senya commented 9 years ago

For some strange reason it works for me now, though I changed nothing. Sorry for posting this.