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

[md-checkbox] breaks page reload if using pre-rendering #6562

Closed
andrei-ga opened this issue Aug 20, 2017 · 4 comments
Closed

[md-checkbox] breaks page reload if using pre-rendering #6562

andrei-ga opened this issue Aug 20, 2017 · 4 comments

Comments

@andrei-ga
Copy link

andrei-ga commented Aug 20, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

md-checkbox should work with asp.net core 2.0 pre-rendering

What is the current behavior?

Only on page refresh I get following error:
ApiScanner.Web> fail: Microsoft.AspNetCore.NodeServices[0] ApiScanner.Web> ERROR TypeError: Cannot read property 'trim' of undefined ApiScanner.Web> at Object.eval [as updateRenderer] (ng:///MdCheckboxModule/MdCheckbox.ngfactory.js:66:56) ApiScanner.Web> at Object.updateRenderer (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23671:70) ApiScanner.Web> at checkAndUpdateView (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23190:14) ApiScanner.Web> at callViewAction (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23550:21) ApiScanner.Web> at execComponentViewsAction (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23482:13) ApiScanner.Web> at checkAndUpdateView (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23191:5) ApiScanner.Web> at callViewAction (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23550:21) ApiScanner.Web> at execComponentViewsAction (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23482:13) ApiScanner.Web> at checkAndUpdateView (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23191:5) ApiScanner.Web> at callViewAction (D:\Projects\ApiScanner\ApiScanner.Web\ClientApp\dist\vendor.js:23550:21)

What are the steps to reproduce?

  1. Create a new asp.net core 2 project with angular template.
  2. Import MdCheckboxModule in app.module.shared.ts
  3. Use md-checkbox component on a html
  4. After accessing page try reload it
@crisbeto
Copy link
Member

Fixed in master by #5470.

@andrei-ga
Copy link
Author

Do you have any clue when new version will be released?

@crisbeto
Copy link
Member

I'm not sure, but you can install the latest master build from the material2-builds repo which includes the fix.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants