Reset table page on filters reset (#8257)
Date column to not show invalid date when column value is empty
This commit is contained in:
parent
09c2875e4f
commit
1d9f1831ba
|
|
@ -324,7 +324,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
|
|||
} catch (e) {
|
||||
isValidDate = false;
|
||||
}
|
||||
if (isValidDate) {
|
||||
if (isValidDate && value) {
|
||||
try {
|
||||
if (outputFormat === "SAME_AS_INPUT") {
|
||||
outputFormat = inputFormat;
|
||||
|
|
@ -684,6 +684,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
|
|||
applyFilters = (filters: ReactTableFilter[]) => {
|
||||
this.resetSelectedRowIndex();
|
||||
this.props.updateWidgetMetaProperty("filters", filters);
|
||||
this.props.updateWidgetMetaProperty("pageNo", 1);
|
||||
};
|
||||
|
||||
toggleDrag = (disable: boolean) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user