We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1792c6a commit d67111cCopy full SHA for d67111c
ui/jquery.ui.editable.js
@@ -92,7 +92,7 @@ $.widget( "ui.editable", {
92
93
this.element.removeClass( highlightStateClass );
94
95
- if ( $this.is( this.element ) || $this.hasClass( placeholderClass ) ) {
+ if ( !this.editing && ( $this.is( this.element ) || $this.hasClass( placeholderClass ) ) ) {
96
this.element.addClass( highlightStateClass );
97
return;
98
}
@@ -108,10 +108,12 @@ $.widget( "ui.editable", {
108
},
109
110
_show: function() {
111
+ this.editing = undefined;
112
this.element.html( this.value() || this._placeholder() );
113
114
115
_edit: function() {
116
+ this.editing = true;
117
this.element.html( this._form() );
118
this._formEvents();
119
0 commit comments