Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
radio-group: does not scroll into view when changed #11503
Comments
|
I created a CodePen to demonstrate how this behavior compares to the default HTML radio input. |
|
Hi! Is anyone working on this? |
|
I've implemented a (somewhat limited) workaround in a local codebase, in case anyone's need is urgent (requires scrollIntoViewIfNeeded and doesn't support model-less radio groups) This is a postLink function that decorates the original postLink
|


Bug
When the user changes a radio group, the radio group should be scrolled into view if it's not currently visible (i.e. mimic the behavior of standard HTML inputs).
CodePen and steps to reproduce the issue:
AngularJS material demo
Detailed Reproduction Steps:
What is the expected behavior?
radio group is scrolled into view, so the user is aware their action has changed the input
What is the current behavior?
radio group remains off screen
What is the use-case or motivation for changing an existing behavior?
conformance with HTML input behavior
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.