Skip to content

Datepicker: 'readonly' attribute doesn't work with bsDatepicker #6734

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

Open
ilona-si opened this issue Mar 11, 2025 · 0 comments
Open

Datepicker: 'readonly' attribute doesn't work with bsDatepicker #6734

ilona-si opened this issue Mar 11, 2025 · 0 comments

Comments

@ilona-si
Copy link

ilona-si commented Mar 11, 2025

Bug description:
The user can edit the control with readonly attribute

<input type="text" readonly bsDatepicker>

Image

StackBlitz that reproduces the issue:

https://stackblitz.com/~/github.com/ilona-si/ngx-bootstrap?file=src/app/app.component.html

Versions of ngx-bootstrap, Angular:

ngx-bootstrap: "^12.0.0",

Angular: 17

Build system: Angular CLI

expected behavior:

User shouldn't be able to type to the input field

@ilona-si ilona-si changed the title bsDatepicker doesn't work with 'readonly' attribute Datepicker: 'readonly' attribute doesn't work with bsDatepicker Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant