Fix routines manage select popup typing for vue-tsc.
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -228,6 +228,10 @@ function filterSelectOption(input: string, option?: { label?: string }) {
|
||||
.toLocaleLowerCase('fa')
|
||||
.includes(q);
|
||||
}
|
||||
|
||||
function selectPopupContainer(node: HTMLElement) {
|
||||
return node.parentElement ?? document.body;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -242,7 +246,7 @@ function filterSelectOption(input: string, option?: { label?: string }) {
|
||||
placeholder="همه مسئولها"
|
||||
:options="assigneeFilterOptions"
|
||||
:filter-option="filterSelectOption"
|
||||
:get-popup-container="(node) => node.parentElement ?? document.body"
|
||||
:get-popup-container="selectPopupContainer"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
@@ -254,7 +258,7 @@ function filterSelectOption(input: string, option?: { label?: string }) {
|
||||
placeholder="همه سازندهها"
|
||||
:options="creatorFilterOptions"
|
||||
:filter-option="filterSelectOption"
|
||||
:get-popup-container="(node) => node.parentElement ?? document.body"
|
||||
:get-popup-container="selectPopupContainer"
|
||||
style="width: 100%"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user