From 84aee8f7e42b74d18c8d2ed4d94fa3039603edc0 Mon Sep 17 00:00:00 2001 From: Aleksey Novikov Date: Wed, 17 Jan 2024 10:31:58 +0300 Subject: [PATCH] #7594 Signature pad focus. (#7688) Fixes #7594 --- .../src/questions/signature.component.html | 2 +- packages/survey-vue3-ui/src/Signaturepad.vue | 2 +- .../templates/question-signaturepad.html | 2 +- src/react/signaturepad.tsx | 2 +- src/vue/signaturepad.vue | 2 +- testCafe/questions/signature.ts | 28 +++++++++++++++++++ .../snapshots/signaturepad-loading.snap.html | 2 +- .../snapshots/signaturepad-scaled.snap.html | 2 +- .../snapshots/signaturepad-value.snap.html | 2 +- ...ignaturepad-with-backgroundImage.snap.html | 2 +- tests/markup/snapshots/signaturepad.snap.html | 2 +- 11 files changed, 38 insertions(+), 10 deletions(-) diff --git a/packages/survey-angular-ui/src/questions/signature.component.html b/packages/survey-angular-ui/src/questions/signature.component.html index 6683d592cb..1522921e52 100644 --- a/packages/survey-angular-ui/src/questions/signature.component.html +++ b/packages/survey-angular-ui/src/questions/signature.component.html @@ -4,7 +4,7 @@
- +
- +
diff --git a/src/react/signaturepad.tsx b/src/react/signaturepad.tsx index 92b4297f36..740bae2c7c 100644 --- a/src/react/signaturepad.tsx +++ b/src/react/signaturepad.tsx @@ -27,7 +27,7 @@ export class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
{this.renderBackgroundImage()} - +
{clearButton} {loadingIndicator} diff --git a/src/vue/signaturepad.vue b/src/vue/signaturepad.vue index affd8564cf..308fc5c305 100644 --- a/src/vue/signaturepad.vue +++ b/src/vue/signaturepad.vue @@ -13,7 +13,7 @@ v-bind:style="{ width: question.renderedCanvasWidth, }"> - +
- +
diff --git a/tests/markup/snapshots/signaturepad-scaled.snap.html b/tests/markup/snapshots/signaturepad-scaled.snap.html index ae11b7984c..bc2513b0b0 100644 --- a/tests/markup/snapshots/signaturepad-scaled.snap.html +++ b/tests/markup/snapshots/signaturepad-scaled.snap.html @@ -4,7 +4,7 @@
- +
\ No newline at end of file diff --git a/tests/markup/snapshots/signaturepad-value.snap.html b/tests/markup/snapshots/signaturepad-value.snap.html index bf4923f770..bb00010d59 100644 --- a/tests/markup/snapshots/signaturepad-value.snap.html +++ b/tests/markup/snapshots/signaturepad-value.snap.html @@ -3,7 +3,7 @@ Sign here
- +
diff --git a/tests/markup/snapshots/signaturepad-with-backgroundImage.snap.html b/tests/markup/snapshots/signaturepad-with-backgroundImage.snap.html index e57a1991d9..e84eddab24 100644 --- a/tests/markup/snapshots/signaturepad-with-backgroundImage.snap.html +++ b/tests/markup/snapshots/signaturepad-with-backgroundImage.snap.html @@ -4,7 +4,7 @@
- +
\ No newline at end of file diff --git a/tests/markup/snapshots/signaturepad.snap.html b/tests/markup/snapshots/signaturepad.snap.html index 5815aea815..9a44ef9370 100644 --- a/tests/markup/snapshots/signaturepad.snap.html +++ b/tests/markup/snapshots/signaturepad.snap.html @@ -3,7 +3,7 @@ Sign here
- +
\ No newline at end of file