Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix(tooltip) : issue #1780, prevent rendering if text is whitespaces #1784

Closed
wants to merge 1 commit into from
Closed

Conversation

thierryx96
Copy link

tooltip : issue #1780, prevent rendering if text is whitespace.

Tooltips show, even if text is white spaces. The content (whitespaces) isn't even displayed, which in my opinion is inconsistent behavior ;) . My fix proposal is checking if the text is empty (as it is already), and whitespace(s) to prevent the tooltip rendering.

Cure : test for empty / blank content.

tooltip : issue #1780, prevent rendering if text is whitespace
@Foxandxss
Copy link
Contributor

I am not so sure of what should be the correct behavior with empty or (whitespace) tooltip. Maybe not showing it is not the solution (an user can think that the tooltip is broken when is not) but I guess that is still better than #1780.

@angular-ui/bootstrap WDYT?

@bekos
Copy link
Contributor

bekos commented Apr 9, 2014

I don't think this is so trivial, if in the future we are going to support html as content, and also I don't believe this is a tooltip's responsibility.

@wesleycho
Copy link
Contributor

Closing this as outdated, feel free to open a new PR based off of current master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants