feat: child selector (direct descendant)

This commit is contained in:
karishmas6
2024-06-05 22:33:06 +05:30
parent f3a1e7b9f6
commit 223f09f93d

View File

@@ -275,9 +275,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
for (let i = 1; i < path.length; i++) {
const level = path[i].level || 0;
if (node.level === level - 1) {
query = `${path[i].name} > ${query}`;
}
}
}