Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Button tooltip comes back when dialog is canceled #8263

Closed

Description

@lelanophilus-zz
  1. Go to http://codepen.io/anon/pen/MyPOad (md-tooltips added to the basic usage example)
  2. Click prompt dialog
  3. tooltip goes away
  4. Select "I'm a cat person"
  5. tooltip is back though mouse is not hovering

The problem, I think, is that after the dialog closes it sets the focus back to the button, which causes the tooltip to activate. I expect the button to have the focus after the dialog closes only if the user was using the keyboard to navigate, not if they clicked on the button with a mouse.

Activity

  1. lelanophilus-zz commented on Apr 28, 2016

    @lelanophilus-zz
    Author

    I think this might be an additional wrinkle on top of the problems discussed in this article: http://marcysutton.com/button-focus-hell/

  2. marcysutton commented on Apr 28, 2016

    @marcysutton
    Contributor

    I'm not actually seeing that problem in Chrome. What browser?

  3. lelanophilus-zz commented on Apr 28, 2016

    @lelanophilus-zz
    Author

    Chrome 50. Trying to reproduce the error it looks like it doesn't happen every time. It looks like repeating and sometimes choosing the other button or hovering over another button to view the custom dialog helps. I'll work on a more deterministic example.

    I was able to get it to manifest after a few attempts though:

    http://i.imgur.com/RqYIS3B.gif

  4. ThomasBurleson commented on Apr 29, 2016

    @ThomasBurleson
    Contributor

    @crisbeto - is this related to "tooltips get disconnected" issues?

  5. added
    needs: investigation
    and removed on Apr 29, 2016
  6. added this to the - Backlog milestone on Apr 29, 2016
  7. crisbeto commented on Apr 29, 2016

    @crisbeto
    Member

    My bet is that it is, but I'll double check.

  8. crisbeto commented on Apr 29, 2016

    @crisbeto
    Member

    Tried it out, it's a different issue.

  9. added
    P4: minor
    needs: investigation
    and removed
    needs: investigation
    on Apr 29, 2016
  10. crisbeto commented on May 24, 2016

    @crisbeto
    Member

    Re-opening and putting in the backlog since @devversion has a pending PR that should help with this (see #7965).

  11. modified the milestones: - Backlog, 1.1.1 on May 24, 2016
  12. ThomasBurleson commented on Jun 2, 2016

    @ThomasBurleson
    Contributor

    This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
    For details, see our forum posting @ http://bit.ly/1UhZyWs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4: minorneeds: investigation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions