Skip to content

Commit bdb8840

Browse files
committed
Copy title attribute from original element
1 parent 8307d76 commit bdb8840

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

select2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,8 @@ the specific language governing permissions and limitations under the Apache Lic
694694
this.containerSelector="#"+this.containerId;
695695
this.container.attr("id", this.containerId);
696696

697+
this.container.attr("title", opts.element.attr("title"));
698+
697699
// cache the body so future lookups are cheap
698700
this.body = thunk(function() { return opts.element.closest("body"); });
699701

0 commit comments

Comments
 (0)