Ok, so I am creating a plugin to allow in-line editing of tables on my website, so far so good, I have most of it, but I can’t get Focusing to exit the table correctly, therefore, if someone finished editing and starts edit a new line or just clicks from a line, it should save and return to normal operation. But if I use blur in the line, there is no answer, but if I use blur in the element, it starts when people change from one element to another.
But if I use focus on the line, it starts whenever someone leaves the item, even if it clicks on the same line. There is also nothing under the event variable that tells me which element it focuses on, so I cannot compare with the current row to see if they just clicked on the row.
I am thinking about saving on Enter / Mouse. Click the Save / Start Editing Another Line button, but I would prefer it to work, as this seems to be a much better way to do this. Has anyone thought? You are welcome?
source
share