Adding a click event to DatePickerWidget when its readonly

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version
8.7.0

Detailed description of issue
How do I register the click event of a read only DatePickerWidget. It’s behavior is inconsistant with other widgets like Text.

The use case is that the inputs are read only and that clicking on an input (like text or date) will offer a workflow to validate.

Expected behaviour
Clicking on a readonly datepicker widget would register click events similar to the TextWidget

Hi there,

Thank you for contacting pdf.js express forums,

DatePickerWidget is essentially a free-text widget:

Can you share a code snippet and a screenshot of the expected behavior?

Thanks in advance.

Best regards,
Kevin Kim