-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partially backport #32217 #32225
Partially backport #32217 #32225
Conversation
I'm confused with the backports :/ |
@@ -734,10 +734,6 @@ class Tooltip { | |||
this.config.animation = initConfigAnimation | |||
} | |||
|
|||
_getCustomClass() { | |||
return this.element.getAttribute('data-custom-class') || this.config.customClass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this not needed? 😵
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the customClass
will be in the configuration already, even if it is provided in the data attributes 🤔
Lines 660 to 664 in 2d8c02e
config = { | |
...this.constructor.Default, | |
...dataAttributes, | |
...(typeof config === 'object' && config ? config : {}) | |
} |
Ref: #32217 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And jQuery's addClass()
method will handle it, either this.config.customClass
is a function or a class name (Even it is a blank string)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep good catch 👌
These are not exactly the backports but minor fixes 🙂 |
@rohit2sharma95 can you move the typo fixes to a new PR please? |
1a610a7
to
2a45ea9
Compare
Partially backport #32217