Clear focus for inline editing
Clear focus for inline editing
Loren Maxwell
Posts: 467Questions: 113Answers: 10
When I click on a cell for inline editing, it gets the focus and opens the editor.
But when I click off of that cell onto another cell that does not have inline editing. the editor closes but the focus stays on the previous cell.
Is there a way to clear the focus?
I've tried editor.close(), editor.blur(), editor.field().focus(), editor.field('').focus(), and editor.field(null).focus(), but none cleared the focus.
This discussion has been closed.
Answers
Got it.
After a good night's rest it dawned on me that this was actually a KeyTable question rather than an Editor question
Here's the reference page: https://datatables.net/reference/api/cell.blur()
And here's the magic command to clear the focus from all cells: