Hi,
I ran into a weird problem. I have parent-tasks with some children underneath it and a search bar where I can filter the parent-task based on the name.
I’m not able to clear the search value when I expand the children from the parent task. It got stucks from there.
The expanding of the task invokes the “gantt.render()” which redraws gantt elements(including the #searchTask ), and it reappears but without already “input” listener.
The easiest way to fix it is to replace adding “input” event listener, with oninput" property, like in the fragment below:
I’ve to stick with the eventListener due to Content Security Policy(CSP). The eventListener would be safer than this oninput/onchange.
And I found a workaround, In the search result, if the eventListener is fire again when expanding the parent task. It’s working good. Is there any nicest approach to achieve this?