This is a bit of an edge case, but I have custom event handlers attached to elements embedded in the fancytree node title element. I bind these handlers to child elements in the title span during the createNode() callback using jQuery selectors and on(). This approach accounts for new elements being added when the folder nodes are expanded. However, when I also use the filter extension, these event binding are lost - even when I reset the filter to show the full tree again. The createNode callback is not called again after the filter reset, so I'm wondering if there is some other callback I should use to bind events once such that the are not unbound by the filter. Thanks!
Custom node event handlers lost when filter extension used
143 views Asked by Dale At
1
There are 1 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in FANCYTREE
- how to not activate fancytree node when clicking the expander
- how to map for rtl with glyph extension of Fancytree
- Getting selectMode 3 behavior on "certain" nodes in FancyTree
- Getting dotted grey rectangular box when dragging fancytree node
- FancyTree select to populate form from AJAX data
- How to Convert Tree Structure List to Json
- Can Fancytree be configured to stay collapsed when an item is dragged and dropped to a parent?
- How do I run the Fancytree jQuery plugin in a Chrome extension with strict Content Security Policy directives?
- Recursive JavaScript Function to Build FancyTree JSON
- Debugging help: preInit event fires but init does not and there is no error
- Fancytree selectmode 3 and drag and drop challenges
- Fancytree Tooltip API
- Create a JSON tree view in PHP using delimiter
- FancyTree DnD how to allow only drop into valid folders and not outside of parent
- Why does lazy-load remove styles of parent rows in fancytree?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I've identified the issue. The Fancytree filter replaces the html/text content of the node title span (whether hidden or not) which results in local event handlers being lost. A partial fix for this is to attach delegate event handlers on the parent fancytree-container div. This works while the filter is not active; however, when a filter is applied, the html content of highlighted nodes is replaced with new content generated by the filter extension, thus any custom embedded/active html elements are missing on these nodes. I don't see an easy fix for this problem short of writing an application-specific tree filter.