Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: FileBrowser Context Menu Grows Infinitely #1059

Closed
WatchfulEyeOfZod opened this issue Jan 11, 2024 · 0 comments
Closed

BUG: FileBrowser Context Menu Grows Infinitely #1059

WatchfulEyeOfZod opened this issue Jan 11, 2024 · 0 comments

Comments

@WatchfulEyeOfZod
Copy link

Jodit Version: 4.0.1

Browser: Chrome
OS: Mac
Is React App: False

Code

const fb = new Jodit.modules.FileBrowser({
	ajax: {
		url: 'https://xdsoft.net/jodit/finder/'
	},
	uploader: {
		url: 'https://xdsoft.net/jodit/finder/?action=fileUpload'
	}
});
fb.open((images) => {
	console.log('Selected:', images);
}, true); // true - show only images

Expected behavior:
Right clicking on a image file pops up a context menu with Edit, Rename, Delete, Preview and Download

image

Actual behavior:
The menu shows up correctly the first time and on subsequent right clicks, the list is duplicated over and over.
image
Something somewhere is not gettting cleared out.

xdan added a commit that referenced this issue Jan 11, 2024
@xdan xdan closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants