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) {
|
} catch (e) {
|
||||||
isValidDate = false;
|
isValidDate = false;
|
||||||
}
|
}
|
||||||
if (isValidDate) {
|
if (isValidDate && value) {
|
||||||
try {
|
try {
|
||||||
if (outputFormat === "SAME_AS_INPUT") {
|
if (outputFormat === "SAME_AS_INPUT") {
|
||||||
outputFormat = inputFormat;
|
outputFormat = inputFormat;
|
||||||
|
|
@ -684,6 +684,7 @@ class TableWidget extends BaseWidget<TableWidgetProps, WidgetState> {
|
||||||
applyFilters = (filters: ReactTableFilter[]) => {
|
applyFilters = (filters: ReactTableFilter[]) => {
|
||||||
this.resetSelectedRowIndex();
|
this.resetSelectedRowIndex();
|
||||||
this.props.updateWidgetMetaProperty("filters", filters);
|
this.props.updateWidgetMetaProperty("filters", filters);
|
||||||
|
this.props.updateWidgetMetaProperty("pageNo", 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
toggleDrag = (disable: boolean) => {
|
toggleDrag = (disable: boolean) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user