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

Error in DayPickerComponent - caused by: not implemented #2163

Closed
1 task done
artdias90 opened this issue Jul 1, 2017 · 4 comments
Closed
1 task done

Error in DayPickerComponent - caused by: not implemented #2163

artdias90 opened this issue Jul 1, 2017 · 4 comments

Comments

@artdias90
Copy link
Contributor

artdias90 commented Jul 1, 2017

  • bug report

"@angular/common": "2.4.10",
"ngx-bootstrap": "1.7.1"
"webpack": "2.2.0",

While trying to add a datepicker, I face the following error:
Error: Uncaught (in promise): Error: Error in ./DayPickerComponent class DayPickerComponent - inline template:9:16 caused by: not implemented

Calendar Template get's partially loaded, so imports seems to be all ok.
Looked everywhere but couldn't find more info.

Other components (using modal and Timepicker) works fine.

note: using webworkers: "@angular/platform-webworker": "^2.0.0",

@bmayen
Copy link

bmayen commented Jul 3, 2017

Guessing the problem is in utils/ng2-bootstrap-config

export function isBs3(): boolean {
  return window.__theme !== 'bs4';
}

@artdias90
Copy link
Contributor Author

Actually the problem was it uses innerHTML:

DayPickerComponent.decorators: [
[innerHTML]=\"CURRENT_THEME_TEMPLATE.ARROW_LEFT\"
...
[innerHTML]=\"CURRENT_THEME_TEMPLATE.ARROW_RIGHT\"
...
]

@artdias90
Copy link
Contributor Author

#2166

@valorkin
Copy link
Member

fix landed in v1.8

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

No branches or pull requests

4 participants