Skip to content

Commit

Permalink
Fixed #133
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Oct 31, 2017
1 parent d80ae66 commit 94754d7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/datatable/HeaderCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ export class HeaderCell extends Component {

onClick(e) {
if(this.props.sortable) {
let targetNode = e.target.nodeName;
if(targetNode === 'INPUT' || targetNode === 'BUTTON' || targetNode === 'A' || (DomHandler.hasClass(e.target, 'ui-clickable'))) {
return;
}
else {
let targetNode = e.target;
if(DomHandler.hasClass(targetNode, 'ui-sortable-column') || DomHandler.hasClass(targetNode, 'ui-column-title') || DomHandler.hasClass(targetNode, 'ui-sortable-column-icon')) {
this.props.onSort({
originalEvent: e,
sortField: this.props.field
Expand Down

0 comments on commit 94754d7

Please sign in to comment.