Revert "Fixed #3388 - DataTable: Disable filter overlay panel when clicking outside"

This reverts commit c3c3edcde8.
This commit is contained in:
Tuğçe Küçükoğlu 2023-01-11 12:21:50 +03:00
parent df3f1ca5a9
commit b58ef712db
7 changed files with 0 additions and 37 deletions

View file

@ -182,10 +182,6 @@ export default {
type: Object,
default: null
},
filterOnOutsideClick: {
type: Boolean,
default: false
},
filterMenuClass: {
type: String,
default: null
@ -457,7 +453,6 @@ export default {
if (!this.outsideClickListener) {
this.outsideClickListener = (event) => {
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
this.filterOnOutsideClick && this.applyFilter();
this.overlayVisible = false;
}

View file

@ -587,11 +587,6 @@ export interface DataTableProps {
* Fields for global filter
*/
globalFilterFields?: string[] | undefined;
/**
* Whether to trigger filter apply when outside of the element is clicked.
* Default value is false.
*/
filterOnOutsideClick?: boolean | undefined;
/**
* Locale to use in filtering. The default locale is the host environment's current locale.
*/

View file

@ -49,7 +49,6 @@
:filters="d_filters"
:filtersStore="filters"
:filterDisplay="filterDisplay"
:filterOnOutsideClick="filterOnOutsideClick"
:filterInputProps="filterInputProps"
@column-click="onColumnHeaderClick($event)"
@column-mousedown="onColumnHeaderMouseDown($event)"
@ -506,10 +505,6 @@ export default {
type: Boolean,
default: false
},
filterOnOutsideClick: {
type: Boolean,
default: false
},
tableStyle: {
type: null,
default: null

View file

@ -36,7 +36,6 @@
:filters="filters"
:filtersStore="filtersStore"
:filterInputProps="filterInputProps"
:filterOnOutsideClick="filterOnOutsideClick"
@filter-change="$emit('filter-change', $event)"
@filter-apply="$emit('filter-apply')"
:filterMenuStyle="columnProp('filterMenuStyle')"
@ -144,10 +143,6 @@ export default {
type: Boolean,
default: false
},
filterOnOutsideClick: {
type: Boolean,
default: false
},
filterInputProps: {
type: null,
default: null

View file

@ -27,7 +27,6 @@
:filters="filters"
:filterDisplay="filterDisplay"
:filtersStore="filtersStore"
:filterOnOutsideClick="filterOnOutsideClick"
:filterInputProps="filterInputProps"
@filter-change="$emit('filter-change', $event)"
@filter-apply="$emit('filter-apply')"
@ -203,10 +202,6 @@ export default {
type: Boolean,
default: false
},
filterOnOutsideClick: {
type: Boolean,
default: false
},
filterInputProps: {
type: null,
default: null