Skip to content

Regression on tooltip template creation process.#34628

Merged
GeoSot merged 5 commits into
mainfrom
gs-tooltip-regression-on-template-empty
Aug 3, 2021
Merged

Regression on tooltip template creation process.#34628
GeoSot merged 5 commits into
mainfrom
gs-tooltip-regression-on-template-empty

Conversation

@GeoSot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

GeoSot commented Jul 30, 2021

Changed the way it acts, and added a test

Comment thread js/src/tooltip.js Outdated
@alpadev

This comment has been minimized.

Comment thread js/src/tooltip.js
@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
Copy Markdown
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.
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