Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Autocomplete: Check for contenteditable via isContentEditable propert…

…y rather than [contenteditable] selector. Properly accounts for properties vs. attributes and 'inherit'.
  • Loading branch information...
commit 405cbefe5cf0b6b381ae19242f4770f2ffc4c1a0 1 parent 535ef2a
Scott González scottgonzalez authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  ui/jquery.ui.autocomplete.js
2  ui/jquery.ui.autocomplete.js
@@ -55,7 +55,7 @@ $.widget( "ui.autocomplete", {
55 55 // search term. #7799
56 56 var suppressKeyPress, suppressKeyPressRepeat, suppressInput;
57 57
58   - this.isMultiLine = this.element.is( "textarea,[contenteditable]" );
  58 + this.isMultiLine = this.element.is( "textarea" ) || this.element.prop( "isContentEditable" );
59 59 this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ];
60 60 this.isNewMenu = true;
61 61

0 comments on commit 405cbef

Please sign in to comment.
Something went wrong with that request. Please try again.