Prevent blur closing the form field

Prevent blur closing the form field

xfloydxfloyd Posts: 35Questions: 12Answers: 1

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

  • allanallan Posts: 63,516Questions: 1Answers: 10,473 Site admin

    Yes - use the onBlur option of the form-options object (can be set when you call inline()).

    Alternatively, use the events such as preBlur to get the value so you can pass it around.

    Allan

This discussion has been closed.