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.
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?
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?