-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Description
Short description of the issue
When I try to rename image in image field I get js error
Error: cannot call methods on sortable prior to initialization; attempted to call method 'disable'
Expected behavior
Sortable should be disabled on image grid while you edit name of image
Actual behavior
It happens after click on ".InputfieldImageEdit__name span" and error is referred to InputfieldImage.js line 604
$list.sortable('disable');
Optional: Screenshots/Links that demonstrate the issue
Your screenshots/links go here.
Optional: Suggestion for a possible fix
Change
$list.sortable('disable');
to
$list.sortable({ disabled: true });
Steps to reproduce the issue
- Upload image and save a page
- Click on the uploaded image and click on file name.
Setup/Environment
- ProcessWire version: 3.0.63