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.
2 parents 1cb5b87 + a0946d0 commit bc921dfCopy full SHA for bc921df
ui/jquery.ui.draggable.js
@@ -91,11 +91,11 @@ $.widget( "ui.draggable", {
91
if ( this.options.helper ) {
92
// clone
93
if ( this.options.helper === true ) {
94
- // If source element has an ID, change ID of helper to avoid overlap
95
- this.dragEl = this.element.clone();
96
- if ( this.element.attr( "id" ) ) {
97
- this.dragEl.attr( "id", this.element.attr( "id" ) + "-" + this.widgetName );
98
- }
+ this.dragEl = this.element.clone()
+ .removeAttr( "id" )
+ .find( "[id]" )
+ .end();
99
} else {
100
// TODO: figure out the signature for this; see #4957
101
this.dragEl = $( this.options.helper() );
0 commit comments