Editor: Mixed live editing - inline and bubble problem
Editor: Mixed live editing - inline and bubble problem
When I add both, the inline and the bubble edit feature to my table, then click on a cell with inline edit and after that I click on a cell with bubble edit, there is a strange behaviour that destroy my bubble edit lightbox and show an inline dropdown in the cell. When I then click outside the table and click back into the bubble edit cell, everything is working fine again. Could you check this? Unfortunately I cant build an example with your live jsbin editor, because I dont know where to address the editor instance (url).
This question has an accepted answers - jump to answer
Answers
Can you give me a link to your page so I can check the issue please?
I am afraid I don't fully understand the description. You have inline and bubble editing being activated when clicking on a single cell?
Allan
I dont have an example to upload to public sorry. I mean you have i.e. 2 columns. Each cell in the first column has the bubble edit feature, so when you click the cell, the bubble editor opens. Each cell in the second column has the inline feature enabled.
Scenario: I click on any cell in the second column, so the inline editing is activated. Now I directly click on any cell in the first column to activate the bubble edit. Now the mini lightbox of the bubble editor is destroyed and in the background the default dropdown is displayd in the cell.
Can you show me your initialisation code so I can try to recreate the issue please?
Allan
I just built this example on the fly. The important part are the '.on(' event-listeners at the end. As wrote above, first try to edit a 'last-child' cell so the inline editor opens and then click on a 'first-child' cell to open the bubble editor (but directly, without losing the inline edit focus before).
Will result in something like this: http://www.directupload.net/file/d/4386/of7lqasi_jpg.htm
Allan, its again my fault. I'm really sorry!
In my case I added a className to a column in the datatables options, for each cell that has a dropdown.
i.e.:
Then I added the event-listeners:
I forgot to exclude '.dt-select' in the second listener, so it opened every time both, the inline and bubble editor.
Next time I should watch a bit longer and more specific over my code. Sorry again!
Hi,
Thanks for posting back - very much appreciated, and great to hear you got to the bottom of it :-)
Allan