Skip to content

Js error after click on ".InputfieldImageEdit__name" #290

@Lazerproof

Description

@Lazerproof

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

  1. Upload image and save a page
  2. Click on the uploaded image and click on file name.

Setup/Environment

  • ProcessWire version: 3.0.63

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions