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