diff --git a/src/components/confirmdialog/ConfirmDialog.vue b/src/components/confirmdialog/ConfirmDialog.vue
index ebfc9031e..d4fe0ca34 100644
--- a/src/components/confirmdialog/ConfirmDialog.vue
+++ b/src/components/confirmdialog/ConfirmDialog.vue
@@ -4,8 +4,8 @@
{{message}}
-
-
+
+
@@ -104,6 +104,13 @@ export default {
},
rejectClass() {
return ['p-confirm-dialog-reject', this.confirmation ? (this.confirmation.rejectClass || 'p-button-text') : null];
+ },
+ autoFocusAccept() {
+ return this.confirmation.defaultFocus === 'accept' ? true : false;
+ },
+ autoFocusReject() {
+ // backward compatibility
+ return this.confirmation.defaultFocus !== 'accept' ? true : false;
}
},
components: {
diff --git a/src/components/inputtext/InputText.vue b/src/components/inputtext/InputText.vue
index 05bc3b753..e485cc184 100755
--- a/src/components/inputtext/InputText.vue
+++ b/src/components/inputtext/InputText.vue
@@ -1,5 +1,5 @@
-
+