diff --git a/jquery.mentionsInput.js b/jquery.mentionsInput.js index a17a1fc..4783861 100644 --- a/jquery.mentionsInput.js +++ b/jquery.mentionsInput.js @@ -98,10 +98,15 @@ elmInputBox.attr('data-mentions-input', 'true'); //Sets the attribute data-mentions-input to true -> Defines if the text area is already configured elmInputBox.bind('keydown', onInputBoxKeyDown); //Bind the keydown event to the text area elmInputBox.bind('keypress', onInputBoxKeyPress); //Bind the keypress event to the text area - elmInputBox.bind('input', onInputBoxInput); //Bind the input event to the text area elmInputBox.bind('click', onInputBoxClick); //Bind the click event to the text area elmInputBox.bind('blur', onInputBoxBlur); //Bind the blur event to the text area + if (navigator.userAgent.indexOf("MSIE 8") > -1) { + elmInputBox.bind('propertychange', onInputBoxInput); //IE8 won't fire the input event, so let's bind to the propertychange + } else { + elmInputBox.bind('input', onInputBoxInput); //Bind the input event to the text area + } + // Elastic textareas, grow automatically if( settings.elastic ) { elmInputBox.elastic();