Skip to content

Setting datesDisabled breaks inline datepicker bsValueChange-Event #6263

Closed
@evilstiefel

Description

@evilstiefel

Bug description:

When using bs-datepicker-inline, disabling dates "asynchronously" (e.g., after the component has been created) breaks firing of bsValueChange.

Plunker/StackBlitz that reproduces the issue:

https://stackblitz.com/github/evilstiefel/ngx-bootstrap-datepicker-repro

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 7.0.0

Angular: 12.2.0

Bootstrap: 5.1.0

Expected behavior

I would expect to be able to set the datesDisabled property at any time, disabling dates, and not breaking change detection or the EventEmitter for bsValueChange.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions