_checkboxToggled(e) {
    const v = e.target.value.toLowerCase();
    const arr = this.items.filter(x => this.getValue(x).toLowerCase() === v);
    
    if (arr.length == 0) {
      return;  //unexpected !
    }

    const item = arr[0];
    if (e.target.checked) {
      this.push("selectedItems", item)
    } else {
      const i = this.selectedItems.indexOf(item);
      if (i >= 0) {
        this.splice("selectedItems", i, 1);
      }
    }
  }
/**
   * Updates the state of the checkbox on toggling.
   * @param {Event} e Event that triggered this.
   * @private
   */
Updates the state of the checkbox on toggling.
@param {Event} e Event that triggered this.
@private
Updates the state of the checkbox on toggling . @param { Event } e Event that triggered this . @private
_checkboxToggled(e) {
    const v = e.target.value.toLowerCase();
    const arr = this.items.filter(x => this.getValue(x).toLowerCase() === v);
    if (arr.length == 0) {
      return;  
    }
    const item = arr[0];
    if (e.target.checked) {
      this.push("selectedItems", item)
    } else {
      const i = this.selectedItems.indexOf(item);
      if (i >= 0) {
        this.splice("selectedItems", i, 1);
      }
    }
  }
_checkboxToggled ( e ) { const v = e . target . value . toLowerCase ( ) ; const arr = this . items . filter ( x => this . getValue ( x ) . toLowerCase ( ) === v ) ; if ( arr . length == 0 ) { return ; } const item = arr [ 0 ] ; if ( e . target . checked ) { this . push ( "selectedItems" , item ) } else { const i = this . selectedItems . indexOf ( item ) ; if ( i >= 0 ) { this . splice ( "selectedItems" , i , 1 ) ; } } }
Updates the state of the checkbox on toggling.
Updates the state of the checkbox on toggling .
//unexpected !