Our blazing fast Grid component built with pure JavaScript


Post by vconstruct »

I am trying to hide/show notes tab in task editor using the follow code :

beforeTaskEditShow.png
beforeTaskEditShow.png (48.77 KiB) Viewed 204 times

This is we are dealing with :
Open the task editor and switch to any other tab and close it ,
When we try to open another task editor again it is getting closed automatically but it shouldn't be the default behavior

How to overcome this issue?

Here is an example of how it is acting up:

PS : We are using cellDblClick to open task editor

Attachments
taskeditorPopup.mp4
(1.61 MiB) Downloaded 21 times

Post by tasnim »

Hello,

I'm not able to reproduce it. Could you please provide a runnable test case so we could reproduce and debug it?

Attachments
chrome_sMQm92CTjS.gif
chrome_sMQm92CTjS.gif (1.9 MiB) Viewed 196 times

Post by vconstruct »

Hi Tasnim,

We are conditionally hiding one of the tabs of the TaskEditor i.e. note tab, and that is what creating the issues for us. Could you help us with hiding the tab on conditional basis or let us know why on conditional hiding of tab is closing the TaskEditor automatically?

taskeditorr.png
taskeditorr.png (52.31 KiB) Viewed 169 times

Post by Animal »

Try setting a debugger breakpoint for the event editor

Screenshot 2023-02-28 at 09.24.06.png
Screenshot 2023-02-28 at 09.24.06.png (147.84 KiB) Viewed 163 times

Then go through the sequence which result in an unexpected hide and then look at the call stack to see how you got there.

I suspect that the tab being hidden is focused, and when it hides, focus exits the editor, and focusout of the editor hides it.

If this is the case, activate another tab (Maybe go to tab index 0) before hiding it.


Post by tasnim »

Hi vconstruct,

I tried with our basic Gantt demo and it works fine here. Could you please upload a sample test case here so we could run, reproduce and debug the issue?

What if you try beforeTaskEdit instead of beforeTaskEditShow? Does it work?


Post Reply