mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-25 19:58:30 +03:00
[TSK-760] Fix focus reset on context menu close (#3114)
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@icloud.com>
This commit is contained in:
parent
b4e3109350
commit
9412db643e
@ -150,7 +150,7 @@
|
||||
}
|
||||
}))
|
||||
)
|
||||
showPopup(Menu, { actions }, getEventPositionElement(ev), () => {})
|
||||
showPopup(Menu, { actions }, getEventPositionElement(ev))
|
||||
}
|
||||
|
||||
function getAttrType (type: Type<any>): IntlString | undefined {
|
||||
@ -172,7 +172,7 @@
|
||||
return res?.name
|
||||
}
|
||||
function editLabel (evt: MouseEvent): void {
|
||||
showPopup(EditClassLabel, { clazz }, getEventPositionElement(evt), () => {})
|
||||
showPopup(EditClassLabel, { clazz }, getEventPositionElement(evt))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
@ -113,9 +113,7 @@
|
||||
|
||||
const showMenu = async (ev: MouseEvent, items: Doc[]): Promise<void> => {
|
||||
ev.preventDefault()
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev), () => {
|
||||
// selection = undefined
|
||||
})
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev))
|
||||
}
|
||||
const issuesQuery = createQuery()
|
||||
let tasks: Task[] = []
|
||||
|
@ -150,9 +150,7 @@
|
||||
|
||||
const showMenu = async (ev: MouseEvent, items: Doc[]): Promise<void> => {
|
||||
ev.preventDefault()
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev), () => {
|
||||
// selection = undefined
|
||||
})
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev))
|
||||
}
|
||||
const issuesQuery = createQuery()
|
||||
let issues: Issue[] = []
|
||||
|
@ -132,9 +132,7 @@
|
||||
checked = []
|
||||
}
|
||||
const items = checked.length > 0 ? checked : object
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev), () => {
|
||||
selection = undefined
|
||||
})
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev))
|
||||
}
|
||||
|
||||
function changeSorting (key: string | string[]): void {
|
||||
|
@ -102,9 +102,7 @@
|
||||
|
||||
const items = selectedObjectIds.length > 0 ? selectedObjectIds : object
|
||||
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(event), () => {
|
||||
dispatch('row-focus')
|
||||
})
|
||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(event))
|
||||
}
|
||||
|
||||
let limited: Doc[] = []
|
||||
|
Loading…
Reference in New Issue
Block a user