Ngzorro date selection box how to complete can not be entered can only select a date, ask God to tell me

ngzorro date selection box cannot be entered, only date can be selected

Mar.16,2021

is not the default can only select a date, cannot enter


looked at the document and demo, can indeed enter a date, but the input value may be cleared.
you can use the nzOnOpenChange event to listen for events when date picker is closed, then get the entered date, convert it to the data type required by the component, and then set the value inside the component.


the temporary method is to use jq to limit, but this method is not very good

Menu