Prevent blur closing the form field
Prevent blur closing the form field
Hi Allen,
Is there any way to prevent blur closing inline editor, so I can close it programmatically. See I have a custom editor filed that opens a modal, but as soon as I start interacting with the modal, the blur causes the editor filed to close and I can not pass my value from the modal anymore. Any clever way to prevent that and allow to pass the value and than close the editor filed?
This question is in relation with the plugin I'm working on.
[https://datatables.net/forums/discussion/35980/daterangepicker-plug-in]
Thanks for your help.
Answers
Yes - use the
onBlur
option of theform-options
object (can be set when you callinline()
).Alternatively, use the events such as
preBlur
to get the value so you can pass it around.Allan