nhn / tui.date-picker

Component that selects specific date.

Home Page:https://nhn.github.io/tui.date-picker/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to remove a date from an input after it has been selected in tui datepicker?

dvsnic opened this issue · comments

I am using Toast ui (tui) calendar datepicker. Tell me how to remove the selected date from input? When removed, the date is added to input again.
https://codepen.io/dvsnic/pen/YzpEyQj

@dvsnic
I don't understand the question. Are you saying that the input box values disappear when you turn on the calendar? Could you please write it down in detail again?

@dvsnic
I don't understand the question. Are you saying that the input box values disappear when you turn on the calendar? Could you please write it down in detail again?

Not. How can these values ​​be removed from input after selection?
http://joxi.ru/J2bPNgJigglKBr

@dvsnic
If what I think is correct, I think you can select through the select event of date-picker and then remove the value of the input box.

@dvsnic
If what I think is correct, I think you can select through the select event of date-picker and then remove the value of the input box.

I guess I explained it wrong :)
How do I reset the date selection?
I tried like this: I set the cursor to input, pressed backspace, but the selected date is returned back. How do I reset it?
https://codepen.io/dvsnic/pen/YzpEyQj

@dvsnic
Oh, I think I understood. Try using the setNull() API. You can reset the selected date.

@dvsnic
Oh, I think I understood. Try using the setNull() API. You can reset the selected date.

Thanks, all worked well.