formio / contrib

Contributed components for Form.io
18 stars 23 forks source link

[BUG] #18

Closed jiefei666 closed 2 years ago

jiefei666 commented 2 years ago

Environment

Please provide as many details as you can: Add the following code when customizing the component get className() { let name = table-responsive ${super.className} if (!this.component.bordered) { name += ' no-top-border-table' } return name } report an error: Cannot read properties of undefined (reading 'hasOwnProperty')

Steps to Reproduce

Expected behavior

Observed behavior

Example

If possible, please provide a screenshot, live example (via JSFiddle or similar), and/or example code to help demonstrate the issue.

For code or form JSON, please enclose in a code block:

// your code here

 get className() {
    let name = `table-responsive ${super.className}`
    if (!this.component.bordered) {
      name += ' no-top-border-table'
    }
    return name
  }