scale icon indicating copy to clipboard operation
scale copied to clipboard

Datepicker feature: disable text input/readonly text input

Open christopherGdynia opened this issue 3 years ago • 3 comments

Hello there,

I would recommend a new Feature for the DatePicker Component.

It would be nice, if you could disable the text input.

christopherGdynia avatar May 09 '22 09:05 christopherGdynia

Hi @christopherGdynia, it should be possible by adding the disabled attribute: https://www.brand-design.telekom.com/scale/?path=/docs/components-date-picker--disabled

Let me know if this doesn't work for you. Thanks!

nowseemee avatar May 21 '22 16:05 nowseemee

Hi @nowseemee,

it would be nice if you only allow using the datepicker menu and disable the text input.

christopherGdynia avatar May 23 '22 05:05 christopherGdynia

Ah, I get it - you want to disallow typing into the input while the date picker is still enabled? What would be the use case? This would introduce accessibility concerns.

nowseemee avatar May 23 '22 08:05 nowseemee