Skip to content
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

Regression on tooltip template creation process. #34628

Merged
merged 5 commits into from
Aug 3, 2021

Conversation

GeoSot
Copy link
Member

@GeoSot GeoSot commented Jul 30, 2021

Return if template content does not exist (Ex: popover without title)

set content only once over an existing tip element

Replicate

Go to https://twbs-bootstrap.netlify.app/docs/5.0/components/popovers/#four-directions open js console. Click popover button three times (open->close->open)
As the code tries to every time to set content, it fails to remove an already removed element

@GeoSot GeoSot added js v5 regression p1 Critical, and inhibits core functionality labels Jul 30, 2021
@GeoSot GeoSot requested a review from a team July 30, 2021 00:22
@XhmikosR
Copy link
Member

Can you please add a test?

@GeoSot GeoSot force-pushed the gs-tooltip-regression-on-template-empty branch from e96fe57 to 810cb4e Compare July 30, 2021 07:18
@GeoSot GeoSot force-pushed the gs-tooltip-regression-on-template-empty branch from aa237c5 to 47b21f6 Compare July 30, 2021 09:28
@GeoSot
Copy link
Member Author

GeoSot commented Jul 30, 2021

Changed the way it acts, and added a test

js/src/tooltip.js Outdated Show resolved Hide resolved
@alpadev

This comment has been minimized.

@GeoSot GeoSot merged commit a6a2d1e into main Aug 3, 2021
@GeoSot GeoSot deleted the gs-tooltip-regression-on-template-empty branch August 3, 2021 08:59
@XhmikosR
Copy link
Member

XhmikosR commented Aug 3, 2021

@GeoSot when was this introduced? If it's after 5.0.2 it's not a regression and we should probably skip the PR from the release notes too.

GeoSot added a commit that referenced this pull request Aug 4, 2021
* Regression on tooltip template creation process.

* check if template content does not exist, or given argument is empty

* call `setContent()` once.
marvin-hinkley-vortx pushed a commit to Vortx-Inc/bootstrap that referenced this pull request Aug 18, 2021
* Regression on tooltip template creation process.

* check if template content does not exist, or given argument is empty

* call `setContent()` once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js p1 Critical, and inhibits core functionality regression v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants