When clicking on "Clear Filters" button, to not reset variant selection

+ add some specs to cover that particular case
This commit is contained in:
Jean-Baptiste Bellet
2023-04-17 11:08:17 +02:00
parent c0203e7091
commit 11a7aa9f96
2 changed files with 27 additions and 1 deletions

View File

@@ -37,7 +37,6 @@ angular.module("admin.lineItems").controller 'LineItemsCtrl', ($scope, $timeout,
$scope.query = ''
$scope.startDate = undefined
$scope.endDate = undefined
$scope.filterByVariantId = null
event = new CustomEvent('flatpickr:clear')
window.dispatchEvent(event)