From 6d1aad4d1693ce26e35dfc5bdc3880fca7802af4 Mon Sep 17 00:00:00 2001 From: Mikel Madariaga Date: Fri, 24 May 2024 12:43:00 +0200 Subject: [PATCH] replaces start by exact as default datetime filter --- library/package.json | 2 +- .../Filter/ContentFilterSelector/ContentFilterSelector.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/library/package.json b/library/package.json index 3ce5151..4eca20a 100644 --- a/library/package.json +++ b/library/package.json @@ -1,6 +1,6 @@ { "name": "@irontec/ivoz-ui", - "version": "1.3.7", + "version": "1.3.8", "description": "UI library used in ivozprovider", "license": "GPL-3.0", "main": "index.js", diff --git a/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx b/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx index 38ca675..9a94865 100644 --- a/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx +++ b/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx @@ -75,11 +75,12 @@ export default function ContentFilterSelector( const propertyFilters = filters[firstFilter] || []; let preferredFilter = currentColumn.preferredFilter || 'partial'; + if (!currentColumn.preferredFilter) { switch (true) { case isPropertyScalar(currentColumn) && currentColumn.format === 'date-time': - preferredFilter = 'start'; + preferredFilter = 'exact'; break; } }