Skip to content

Commit

Permalink
Survey Creator V1 - When clicking a question within a panel, a panel … (
Browse files Browse the repository at this point in the history
#5499)

* Survey Creator V1 - When clicking a question within a panel, a panel appears selected in a Property grid fix #5487

* Update V1 functional test #5487

* Fix functional test #5487

* Add check on isTouch #5487
  • Loading branch information
andrewtelnov committed May 15, 2024
1 parent ff86710 commit ffe20a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/survey-creator/src/surveyjsObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ export function createAfterRenderHandler(
}
}
};
domElement.onpointerdown = domElement.onclick;
if (Survey.IsTouch) {
domElement.onpointerdown = domElement.onclick;
}
if (!isPanel) {
var childs = domElement.childNodes;
for (var i = 0; i < childs.length; i++) {
Expand Down Expand Up @@ -572,7 +574,7 @@ questionPrototype["onSelectedElementChanged"] = function () {
Survey.QuestionSelectBaseImplementor.prototype["onCreated"] = function () {
var q: any = this.question;
var updateTriggerFunction = function () {
if(!!q && !!q.survey && !q.survey.isDesignMode) return;
if (!!q && !!q.survey && !q.survey.isDesignMode) return;
setTimeout(() => q["koElementType"].notifySubscribers(), 0);
};
[
Expand Down

0 comments on commit ffe20a9

Please sign in to comment.