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.
docs-bug(checkbox): Documentation use "MAT_CHECKBOX_CLICK_ACTION" without notification of deprecation. When MAT_CHECKBOX_DEFAULT_OPTIONS should be used. Errors in v11. #21025
Comments
waiting solution :( i had same issue |
Hi....can I take this...as this will be my first attempt to contribute. thanks |
…eckbox updates the documentation of customizing the default option of the checkbox. the default option value to provide for checkbox is MAT_CHECKBOX_DEFAULT_OPTIONS for version>=10 fixes angular#21025
The checkbox documentation page has a section about the usage of "MAT_CHECKBOX_CLICK_ACTION" to define the behavior on clicks.
It didn't provide any indication that this method is deprecated, nor that it was replaced with
{provide: MAT_CHECKBOX_DEFAULT_OPTIONS, useValue: { clickAction: 'noop' } as MatCheckboxDefaultOptions }
Running a project after upgrading the Angular and Material package will produce an error.
Migration didn't touch this. I don't know if it was updated in earlier migration, since I've only added the provider a week ago, into v10 project. (no notice of deprecation anywhere I saw)
Affected documentation page:
https://material.angular.io/components/checkbox/overview