mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
fix #380
This commit is contained in:
parent
64df3e1fae
commit
88befb8136
@ -1,4 +1,5 @@
|
||||
/* eslint react/require-default-props: 0 */
|
||||
/* jsx-a11y/no-static-element-interactions: 0 */
|
||||
/* eslint no-return-assign: 0 */
|
||||
/* eslint prefer-template: 0 */
|
||||
import React, { Component } from 'react';
|
||||
@ -121,7 +122,11 @@ class DateFilter extends Component {
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
<div className={ `filter date-filter ${className}` } style={ style }>
|
||||
<div
|
||||
onClick={ e => e.stopPropagation() }
|
||||
className={ `filter date-filter ${className}` }
|
||||
style={ style }
|
||||
>
|
||||
<select
|
||||
ref={ n => this.dateFilterComparator = n }
|
||||
style={ comparatorStyle }
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
/* eslint jsx-a11y/no-static-element-interactions: 0 */
|
||||
/* eslint react/require-default-props: 0 */
|
||||
/* eslint no-return-assign: 0 */
|
||||
|
||||
@ -167,7 +168,11 @@ class NumberFilter extends Component {
|
||||
`;
|
||||
|
||||
return (
|
||||
<div className={ `filter number-filter ${className}` } style={ style }>
|
||||
<div
|
||||
onClick={ e => e.stopPropagation() }
|
||||
className={ `filter number-filter ${className}` }
|
||||
style={ style }
|
||||
>
|
||||
<select
|
||||
ref={ n => this.numberFilterComparator = n }
|
||||
style={ comparatorStyle }
|
||||
|
||||
@ -116,6 +116,7 @@ class SelectFilter extends Component {
|
||||
style={ style }
|
||||
className={ selectClass }
|
||||
onChange={ this.filter }
|
||||
onClick={ e => e.stopPropagation() }
|
||||
defaultValue={ defaultValue !== undefined ? defaultValue : '' }
|
||||
>
|
||||
{ this.getOptions() }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user