Skip to content

Commit f156259

Browse files
henrycheanickj
authored andcommitted
fix: method call bugs
1 parent be93720 commit f156259

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

sdk-integration-examples/web-sdk/angular/id-scan/src/app/details/details.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ <h4>Extracted details</h4>
1616
</div>
1717

1818
<footer>
19-
<button (click)="(onClose)">Close</button>
19+
<button (click)="handleClose()">Close</button>
2020
</footer>
2121
</div>

sdk-integration-examples/web-sdk/angular/id-scan/src/app/details/details.component.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export class DetailsComponent {
1111
@Input() details: any = [];
1212
@Output() onClose = new EventEmitter<void>();
1313

14+
public handleClose = () => {
15+
this.onClose.emit();
16+
};
17+
1418
onGetFields() {
1519
const fields = [];
1620

sdk-integration-examples/web-sdk/react/id-scan/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8+
"host": "vite --host",
89
"build": "tsc -b && vite build",
910
"lint": "eslint .",
1011
"preview": "vite preview"

sdk-integration-examples/web-sdk/vue/id-scan/src/components/Details.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ for (let i = 0; i < props.details.length; i++) {
5353
<input
5454
disabled
5555
type="text"
56-
name="field.name"
57-
value="field.value"
58-
id="field.name"
56+
:name="field.name"
57+
:value="field.value"
58+
:id="field.name"
5959
/>
6060
</div>
6161
</div>

sdk-integration-examples/web-sdk/vue/id-scan/src/components/HelloWorld.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ onMounted(() => {
9292
<img src="../assets/loading.svg" alt="Loading icon" />
9393
</div>
9494
<div v-else class="card">
95-
<button type="button" @click="handleStart(true)">
95+
<button type="button" @click="handleStart(false)">
9696
Start ID Check Front Side
9797
</button>
9898
<button type="button" @click="handleStart(true)">

0 commit comments

Comments
 (0)