components icon indicating copy to clipboard operation
components copied to clipboard

Button toggle text highlight bug

Open scottarver opened this issue 9 years ago • 4 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When text is highlighted, and a button group toggle item is clicked, the item click should respond/change.

What is the current behavior?

When text is highlighted, and a button group toggle item is clicked, the item click does not respond or change.

What are the steps to reproduce?

button toggle

https://plnkr.co/edit/I5s7xNpnzOGCze5wU6K7?p=preview Highlight the word "Selected" with the mouse, then click on one of the button toggles.

What is the use-case or motivation for changing an existing behavior?

Having text highlighted on the page prevents button toggle groups from working, making the page seem like its broke.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

angular/core @4.3.4 typescript 2.1.6 angular/material 2.0.0-beta.8

Is there anything else we should know?

A double click causes the highlighted text to become unlighted, and then it works.

scottarver avatar Aug 10 '17 21:08 scottarver

Also affects me.

luanribeiross avatar Aug 11 '17 14:08 luanribeiross

This issue seems to be fixed in the latest version. Here is an updated sample link: https://stackblitz.com/angular/mddrjdpjlgn?file=app%2Fbutton-toggle-exclusive-example.ts

DiyanDimitrov avatar Feb 12 '19 09:02 DiyanDimitrov

It sounds like this issue was fixed a long time ago. Closing.

crisbeto avatar Sep 08 '21 19:09 crisbeto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.