Skip to content

Commit

Permalink
#6490 Page is not selected by click on the header
Browse files Browse the repository at this point in the history
Fixes #6490
  • Loading branch information
novikov82 committed Jan 31, 2025
1 parent 9ddf390 commit 6c755b7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions functionalTests/designer/surface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,4 +577,25 @@ test("Page adorner double click", async (t) => {
await t.doubleClick(Selector(".svc-page__content > .svc-question__drag-area"));
await t.expect(isCollapsed()).notOk();

});

test("Page adorner header click - select", async (t) => {
const qName = "question1";
const json = {
"pages": [
{
"name": "page1",
"elements": [
{
"type": "text",
"name": qName
}
]
}
]
};
await setJSON(json);

await t.click(".svc-page__content-actions", { offsetX: 50, offsetY: 5 });
await t.expect(Selector(".svc-page__content").hasClass("svc-page__content--selected")).ok();
});
4 changes: 4 additions & 0 deletions packages/survey-creator-core/src/components/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ svc-page {
.svc-page-toolbar {
flex-grow: 1;
justify-content: flex-end;
pointer-events: none;
.sv-action {
pointer-events: all;
}
}

.svc-page-toolbar--collapse {
Expand Down

0 comments on commit 6c755b7

Please sign in to comment.