mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix next and prev buttons unavailable in expose view of links tab because links moved into shadow root
regarding ticket #99991
This commit is contained in:
parent
014d953d35
commit
db3c858669
@ -507,7 +507,11 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
|
|||||||
// Try for all exposable of the same type in the parent widget
|
// Try for all exposable of the same type in the parent widget
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const others = (this.getParent().closest("[exposable]") || this.getParent().getDOMNode()).querySelectorAll(this.localName);
|
let others = (this.getParent().closest("[exposable]") || this.getParent().getDOMNode()).querySelectorAll(this.localName);
|
||||||
|
//might be in elements shadow root e.g. Links in LinksTab of edit windows
|
||||||
|
if(!others || others.length === 0){
|
||||||
|
others = this.getParent().getDOMNode().shadowRoot.querySelectorAll(this.localName)
|
||||||
|
}
|
||||||
others.forEach((exposable, index) =>
|
others.forEach((exposable, index) =>
|
||||||
{
|
{
|
||||||
if(exposable === this)
|
if(exposable === this)
|
||||||
|
Loading…
Reference in New Issue
Block a user