react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Adding double click handler no longer works

Open GenoD opened this issue 9 years ago • 3 comments

WHICH VERSION OF REACT ARE YOU USING?

Officially Supported:
[ ] v0.14.x
Community Supported:
[ X ] v15.0.x

WHICH BROWSER ARE YOU USING?

Officially Supported:
[ ] IE 9 / IE 10 / IE 11
[ ] Edge
[ X ] Chrome
Should work:
[ X ] Firefox
[ ] Safari

I'm submitting a ... (check one with "x")

[ X ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/adazzle/react-data-grid/blob/master/CONTRIBUTING.md

Current behavior Prior to updating, the following solution worked in 1.0.40

Implementing Double Click events no longer works in version 2.0.2

Expected/desired behavior

Reproduction of the problem

var RowRenderer = React.createClass({

 PropTypes: {
   onDoubleClick: React.PropTypes.func
 },

 render: function() {
   return (<ReactDataGrid.Row ref="row" {...this.props} onDoubleClick={this.props.onDoubleClick} /></div>)
 }
});


function onDoubleClick(e) {
  // handle click event here
}

var Example = React.createClass({
  render: function() {
    return  (<ReactDataGrid
    columns={columns}
    rowGetter={rowGetter}
    rowsCount={_rows.length}
    minHeight={500}
    rowRenderer={<RowRenderer onDoubleClick={this.onDoubleClick} />} />);
  }
});

What is the expected behavior? Implementation should add an onDoublClick event handler

What is the motivation / use case for changing the behavior?

GenoD avatar Mar 15 '17 17:03 GenoD

I want the same functionality, the provided solution doesn't work for me neither.

thomasdejagere avatar Mar 29 '17 06:03 thomasdejagere

Similar to this, there are other events which are not supported. This change has been added in version 1.0.62 to remove warnings for unknown props.

gaurav-quasar avatar Jun 17 '17 10:06 gaurav-quasar

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Jul 12 '18 15:07 stale[bot]