src/FilterItem.js
/**
   * Sets up the events related to the FilterItem instance
   */
Sets up the events related to the FilterItem instance
Sets up the events related to the FilterItem instance
bindEvents() {
    this.$node.on(transitionEndEvt, () => {
      const { filteredOut } = this.props;
      this.$node.toggleClass('filteredOut', filteredOut);
      this.$node.css('z-index', filteredOut ? -1000 : '');
    });
  }
bindEvents ( ) { this . $node . on ( transitionEndEvt , ( ) => { const { filteredOut } = this . props ; this . $node . toggleClass ( 'filteredOut' , filteredOut ) ; this . $node . css ( 'z-index' , filteredOut ? - 1000 : '' ) ; } ) ; }
Sets up the events related to the FilterItem instance
Sets up the events related to the FilterItem instance
// On transitionEnd determine if the item is filtered out or not, // in case it is add the .filteredOut class for easy targeting by // the user and set the z-index to -1000 to prevent mouse events // from being intercepted.