mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-09 17:16:36 +02:00
lint fixes
This commit is contained in:
parent
c21893e6fa
commit
9df1310a52
|
@ -1574,11 +1574,11 @@ class Choices {
|
|||
* @private
|
||||
*/
|
||||
_onMouseDown(e) {
|
||||
let target = e.target;
|
||||
const target = e.target;
|
||||
if (this.containerOuter.contains(target) && target !== this.input) {
|
||||
let foundTarget;
|
||||
const activeItems = this.store.getItemsFilteredByActive();
|
||||
const hasShiftKey = e.shiftKey;
|
||||
let foundTarget;
|
||||
|
||||
if (foundTarget = findAncestorByAttr(target, 'data-item')) {
|
||||
this._handleItemAction(activeItems, foundTarget, hasShiftKey);
|
||||
|
|
Loading…
Reference in a new issue