mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-29 09:09:15 +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 {
|
function getAttrType (type: Type<any>): IntlString | undefined {
|
||||||
@ -172,7 +172,7 @@
|
|||||||
return res?.name
|
return res?.name
|
||||||
}
|
}
|
||||||
function editLabel (evt: MouseEvent): void {
|
function editLabel (evt: MouseEvent): void {
|
||||||
showPopup(EditClassLabel, { clazz }, getEventPositionElement(evt), () => {})
|
showPopup(EditClassLabel, { clazz }, getEventPositionElement(evt))
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -113,9 +113,7 @@
|
|||||||
|
|
||||||
const showMenu = async (ev: MouseEvent, items: Doc[]): Promise<void> => {
|
const showMenu = async (ev: MouseEvent, items: Doc[]): Promise<void> => {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev), () => {
|
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev))
|
||||||
// selection = undefined
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
const issuesQuery = createQuery()
|
const issuesQuery = createQuery()
|
||||||
let tasks: Task[] = []
|
let tasks: Task[] = []
|
||||||
|
@ -150,9 +150,7 @@
|
|||||||
|
|
||||||
const showMenu = async (ev: MouseEvent, items: Doc[]): Promise<void> => {
|
const showMenu = async (ev: MouseEvent, items: Doc[]): Promise<void> => {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev), () => {
|
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev))
|
||||||
// selection = undefined
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
const issuesQuery = createQuery()
|
const issuesQuery = createQuery()
|
||||||
let issues: Issue[] = []
|
let issues: Issue[] = []
|
||||||
|
@ -132,9 +132,7 @@
|
|||||||
checked = []
|
checked = []
|
||||||
}
|
}
|
||||||
const items = checked.length > 0 ? checked : object
|
const items = checked.length > 0 ? checked : object
|
||||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev), () => {
|
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(ev))
|
||||||
selection = undefined
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeSorting (key: string | string[]): void {
|
function changeSorting (key: string | string[]): void {
|
||||||
|
@ -102,9 +102,7 @@
|
|||||||
|
|
||||||
const items = selectedObjectIds.length > 0 ? selectedObjectIds : object
|
const items = selectedObjectIds.length > 0 ? selectedObjectIds : object
|
||||||
|
|
||||||
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(event), () => {
|
showPopup(Menu, { object: items, baseMenuClass }, getEventPositionElement(event))
|
||||||
dispatch('row-focus')
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let limited: Doc[] = []
|
let limited: Doc[] = []
|
||||||
|
Loading…
Reference in New Issue
Block a user