Skip to content

search in Firefox causing unresponsive script window popup #117

@HarryF514

Description

@HarryF514

Here is the full message from the pop up window:

A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: http://localhost:9000/bower_components/jquery/dist/jquery.js:406

there are around 427 nodes in the tree structure. It mostly happened when we do a second search.

here is code I wrote:

scope.$watch('searchTerm', function(newValue, oldValue) {
	    		if (newValue !== oldValue) {
	    			$scope.$broadcast('toggle-loader', true);
	    			var searchTerm = newValue.trim();
		    		if (searchTerm.length) { 
	            		$scope.subgroupTree.treeInstance.jstree(true).search(searchTerm);
	          		} else {
	            		$scope.subgroupTree.treeInstance.jstree(true).clear_search();
	          		}
	    		}
 	    		
	    	});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions