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

Disabled nested structure issue: Cannot read property 'focus' of undefined #1960

Closed
afbora opened this issue Jul 31, 2019 · 1 comment

Comments

@afbora
Copy link
Contributor

commented Jul 31, 2019

I'm using disabled structure for customer order details/items like readonly.
As you will see screencast, disabled text input can focus but disabled structure field can't focus and error thrown.

Sample Blueprint

fields:
    addresses:
        label: Addresses
        type: structure
        disabled: false
        fields:
            street:
                label: Street
                type: text
                disabled: true
            zip:
                label: ZIP
                type: text
            city:
                label: City
                type: text

            nested:
                label: Nested Addresses
                type: structure
                disabled: true
                fields:
                    street:
                        label: Street
                        type: text
                    zip:
                        label: ZIP
                        type: text
                    city:
                        label: City
                        type: text

Screencast

structure

Kirby Version
3.2.3-RC.1

Console output

app.js:1 TypeError: Cannot read property 'focus' of undefined
at a.focus (app.js:1)
at a.focus (app.js:1)
at a.focus (app.js:1)
at a. (app.js:1)
at Array. (vendor.js:41)
at le (vendor.js:41)

Desktop:

  • Windows 10
  • Chrome 75.0.3770.142
@distantnative

This comment has been minimized.

Copy link
Contributor

commented Sep 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.