mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): CSS style not working properly in modal pages (#10070)
This commit is contained in:
committed by
Nathan Walker
parent
6f1a5d16e3
commit
95c3b3026d
@@ -11,6 +11,7 @@ import { Combinator as ICombinator , SimpleSelectorSequence as ISimpleSelectorSe
|
||||
*/
|
||||
export interface Node {
|
||||
parent?: Node;
|
||||
_modalParent?: Node;
|
||||
|
||||
id?: string;
|
||||
nodeName?: string;
|
||||
@@ -384,7 +385,7 @@ export class Selector extends SelectorCore {
|
||||
return !!node;
|
||||
} else {
|
||||
let ancestor = node;
|
||||
while ((ancestor = ancestor.parent)) {
|
||||
while ((ancestor = ancestor.parent ?? ancestor._modalParent)) {
|
||||
if ((node = group.match(ancestor))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user