Skip to content

Commit 24f4bbf

Browse files
committed
Merge pull request select2#2257 from mkurz/title_fix
Copy title attribute from original element
2 parents f48df6f + bdb8840 commit 24f4bbf

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)