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

Tooltip fails on some elements #673

Closed
Elanor-L opened this issue Jul 28, 2016 · 0 comments
Closed

Tooltip fails on some elements #673

Elanor-L opened this issue Jul 28, 2016 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Elanor-L
Copy link

Hi,
I tried to put a tooltip on a button, but it doesn't really work: I mean sometimes it works, and sometimes it doesn't.
On the first hover, I got this error

platform-browser.umd.js:1900 TypeError: Cannot read property 'style' of null
    at Tooltip.hide (tooltip.ts:89)
    at Tooltip.onMouseLeave (tooltip.ts:32)
    at AppView._View_WorkDataFormComponent0._handle_mouseout_107_7 (WorkDataFormComponent.template.js:2058)
    at eval (platform-browser.umd.js:2645)
    at eval (platform-browser.umd.js:2722)
    at ZoneDelegate.invoke (zone.js:323)
    at Object.onInvoke (core.umd.js:9100)
    at ZoneDelegate.invoke (zone.js:322)
    at Zone.runGuarded (zone.js:230)
    at NgZoneImpl.runInnerGuarded (core.umd.js:9133)
    at NgZone.runGuarded (core.umd.js:9365)

Here the generated code

<button _ngcontent-obc-20="" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only" icon="fa-pencil-square-o" pbutton="" ptooltip="Modifier" tooltipposition="top">
    <span class="ui-button-icon-left ui-c fa fa-fw fa-pencil-square-o"/>
    <span class="ui-button-text ui-c">ui-button</span>
</button>

The error occurs when the cursor moves from an element to his child.
I think the trouble comes from this fact that all the elements of the button have the event of the tooltip.

@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 29, 2016
@cagataycivici cagataycivici added this to the 1.0.0-beta.12 milestone Jul 29, 2016
@cagataycivici cagataycivici self-assigned this Jul 29, 2016
@cagataycivici cagataycivici changed the title Tooltip on button Tooltip fails on some elements Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants