• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dowjones / react-dropdown-tree-select / 1142
94%

Build:
DEFAULT BRANCH: develop
Ran 09 May 2019 01:53PM UTC
Jobs 1
Files 26
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1142

push

travis-ci

mrchief
fix: Updated onAction to bubble up custom props (#230)

BREAKING: Action Changes

- The option to pass a local `onAction` handler on a node is now removed. Use the **global** `onAction` event instead.

  ```jsx
  <DropdownTreeSelect onAction={onAction} ... />
  ```

- `onAction` signature is now consistent with signature for other event handlers such `onChange` and `onNodeToggle`

  ```js
  // before
  onAction = ({ action, id }) => {
    console.log(action, id)
  }

  // after
  onAction = (node, action) => {
    console.log(action, node.id)
  }
  ```

- Any custom props passed to `node` or `action` is accessible in the event properties. This will make it easier to add generic custom logic based on your custom data/properties which can be used instead of separate handlers.

  For example:

  ```js
  // node with action and custom props
  {
    id: 'mynode',
    propA: 'hello',
    propB: true,
    actions: [
      {
        id: 'myaction',
        propX: {...},
        propY: 12
      }
    ]
  }

  onAction = (node, action) => {
    console.log(node.propA, node.propB, action.propX, action.propY)
    // prints hello true {...} 12
  }

  ```

446 of 491 branches covered (90.84%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 3 files covered. (100.0%)

566 of 581 relevant lines covered (97.42%)

75.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1142.1 09 May 2019 01:53PM UTC 0
94.4
Travis Job 1142.1
Source Files on build 1142
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1142
  • aee6e7ac on github
  • Prev Build on develop (#1128)
  • Next Build on develop (#1147)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc