Skip to content

isContentEditable always true on IE11 #367

@Decklock

Description

@Decklock

Hi Tom,

I'm having trouble getting the typeahead plugin (2.9.0 dist) to run correctly in IE11 (specifically version 11.0.9600.18762).

For example, the following jsfiddle runs fine for me in Chrome (v58), but returns nothing at all in IE11...

When I trace the JavaScript, the issue appears appears to be the following section (line 716 673 of jquery.typeahead.js)...

   case "input":
      scope.deferred = $.Deferred();
      if (scope.node[0].isContentEditable) {
         scope.rawQuery = scope.node.text();
      } else {
         scope.rawQuery = scope.node.val().toString();
      }

IE11 returns true for isContentEditable, but scope.node.text() always returns an empty string no matter what is typed in for the search query.

Chrome returns false for isContentEditable, and then scope.node.val().toString() returns the correct query string.

Am I interpreting this right?

Note: The runningcoder.org Demo page works in IE11 because it's still running 2.8, I think.

Thanks in advance for the help! Let me know if you need any additional information for trouble-shooting.

-- Deck

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions