mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Close context menu if open when clicking on group
This commit is contained in:
		@@ -485,7 +485,7 @@ class BulkEditOverlay {
 | 
			
		||||
            BulkEditOverlay.longPressDelay);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    handleLongPressEnd = () => {
 | 
			
		||||
    handleLongPressEnd = (event) => {
 | 
			
		||||
        this.isLongPress = false;
 | 
			
		||||
        if (this.#contextMenuOpen) event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
@@ -506,7 +506,12 @@ class BulkEditOverlay {
 | 
			
		||||
        event.clientY || event.touches[0].clientY,
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    #stopEventPropagation = (event) => event.stopPropagation();
 | 
			
		||||
    #stopEventPropagation = (event) => {
 | 
			
		||||
        if (this.#contextMenuOpen) {
 | 
			
		||||
            this.handleContextMenuHide(event);
 | 
			
		||||
        }
 | 
			
		||||
        event.stopPropagation();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #enableClickEventsForGroups = () => this.#getDisabledElements().forEach((element) => element.removeEventListener('click', this.#stopEventPropagation));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user