mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-26 05:19:15 +02:00
fixes #17097: Go back to using jQuery's text and html methods since innerText is nonstandard and not present in Firefox
Closes #17272 by merging a tweaked version of it. [skip validator]
This commit is contained in:
committed by
Chris Rebert
parent
6d42a23039
commit
54c4eb950b
@@ -358,9 +358,9 @@ const Tooltip = (($) => {
|
||||
setContent() {
|
||||
let tip = this.getTipElement()
|
||||
let title = this.getTitle()
|
||||
let method = this.config.html ? 'innerHTML' : 'innerText'
|
||||
let method = this.config.html ? 'html' : 'text'
|
||||
|
||||
$(tip).find(Selector.TOOLTIP_INNER)[0][method] = title
|
||||
$(tip).find(Selector.TOOLTIP_INNER)[method](title)
|
||||
|
||||
$(tip)
|
||||
.removeClass(ClassName.FADE)
|
||||
|
Reference in New Issue
Block a user