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

dowjones / react-dropdown-tree-select / 1142 / 1
94%
develop: 94%

Build:
DEFAULT BRANCH: develop
Ran 09 May 2019 01:53PM UTC
Files 26
Run time 2s
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

09 May 2019 01:51PM UTC coverage: 94.403% (-0.08%) from 94.486%
1142.1

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 %.

566 of 581 relevant lines covered (97.42%)

75.54 hits per line

Source Files on job 1142.1
  • Tree
  • List 0
  • Changed 14
  • Source Changed 3
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 858
  • Travis Job 1142.1
  • aee6e7ac on github
  • Prev Job for on develop (#1128.1)
  • Next Job for on develop (#1147.1)
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

© 2026 Coveralls, Inc