Inline Editor closing when dragging to select text in input or textarea.
Inline Editor closing when dragging to select text in input or textarea.
smoldovanskiy
Posts: 62Questions: 8Answers: 0
in Editor
Using bootstra4 styling.
I do not see this issue in your examples.
This question has an accepted answers - jump to answer
Answers
If you drag outside of the cell it closes the inline editor
using this to check if value was changed. Could the on initSubmit be the issues?
initiating editor like so
Yep, it'll be that
onBlur: 'submit'
- that's saying to close the form and submit whenever a blur to the form would occur. That's probably not set on the example of ours that you're referring to.Colin
Thank you for the response, I don't think this is it.
Your onBlur submit example works correctly. When selecting the text in the editor textbox, if you click inside textbox then drag outside of it and let go of mouse button, it does not close. Only closes if you click fully outside of it.
It is not working that way for me. When I click into textbox, drag and release button outside it closes immediately. This is problematic, since user will not be able to select text without precisely staying within the textbox....
Could it have to do with this initialization using the index?
You examples just pass in this, but that was not working for me. I got the code below when I asked for help on this forum.
'''
editor.inline(table.cell($(this).closest('td')).index(),
In this example - if you pop the console open in your browser and enter:
it will activate inline editing. it appears to be okay in that example when you click on a cell and then click and drag to select text in the input, while ending the click outside the target cell.
That suggests to me it might a version issue. That page is using Editor 2.0.5. What version are you using?
Allan
Using 1.9.5
I guess I need to update.
I updated and am still getting the same issue
I am still thinking it has something to do with how the editor gets called to open.
could this be the issue?
table.cell($(this).closest('td')).index()
this is what the field looks like
simply put it just places the narrative text into a styled div
result += "
";
do i need to update the datatables too?
1.10.22
I can't think of anything between DataTables 1.10.22 and 1.11.0 that would cause that error. Can you give me a link to your page so I can trace it through with a debugger please?
Thanks,
Allan
It is an internal application so I cannot provide a link to it.
would it be possible to set up a sandbox to try and reproduce?
Can I debug it on my end, you guys have some kind of tool right?
i also noticed i get same behavior with stand alone editor field outside of a datable.
Here's how to provide a test case:
https://datatables.net/manual/tech-notes/10
If we take this example and you pop open the console and run:
Then it will enable inline editing for the table. I've not been able to reproduce the error you are seeing, and you indicate above that you couldn't reproduce it in our examples.
I'm afraid that without being able to see this happen, there isn't too much help I can offer as I can't debug it.
Allan
I purchased support credits, would you be able to help me debug this in my environment?
Hi,
I've sent you a reply via e-mail .
Allan
just FYI for anyone having this issue, update to latest editor to resolve