When datePicker is opening, I click somewhere(without date itself).I want to hide.
But date field is dynamically change(used to createElement API).So If used parentNode API, you can't get document. At an early time, I think the date field how to bubble with document. Use delegates event feature?Use parentNode without null find uppermost layer element?
I read other code and find use parentNode is most common methods.For instance, freqdec/datePicker.
When datePicker is opening, I click somewhere(without date itself).I want to hide.
But date field is dynamically change(used to
createElementAPI).So If usedparentNodeAPI, you can't getdocument. At an early time, I think the date field how to bubble withdocument. Usedelegates event feature?UseparentNodewithout null find uppermost layer element?I read other code and find use
parentNodeis most common methods.For instance, freqdec/datePicker.