From 1d952f09cc3557ac9d332a605a9fc4584ad57d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 1 Sep 2022 17:23:35 +0300 Subject: [PATCH] Fixed #2921 - Password | missing required property --- api-generator/components/password.js | 6 ++++++ src/components/password/Password.d.ts | 5 +++++ src/components/password/Password.vue | 6 +++++- src/views/password/PasswordDoc.vue | 6 ++++++ 4 files changed, 22 insertions(+), 1 deletion(-) diff --git a/api-generator/components/password.js b/api-generator/components/password.js index de7388336..6dcfdd278 100644 --- a/api-generator/components/password.js +++ b/api-generator/components/password.js @@ -83,6 +83,12 @@ const PasswordProps = [ default: "null", description: "Placeholder text for the input." }, + { + name: "required", + type: "boolean", + default: "false", + description: "When present, it specifies that an input field must be filled out before submitting the form." + }, { name: "inputId", type: "string", diff --git a/src/components/password/Password.d.ts b/src/components/password/Password.d.ts index 62a5c58b3..171825b76 100755 --- a/src/components/password/Password.d.ts +++ b/src/components/password/Password.d.ts @@ -67,6 +67,11 @@ export interface PasswordProps extends InputHTMLAttributes { * Placeholder text for the input. */ placeholder?: string | undefined; + /** + * When present, it specifies that an input field must be filled out before submitting the form. + * Default value is false. + */ + required?: boolean | undefined; /** * Identifier of the underlying input element. */ diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index a00c5df42..783f83c66 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -1,7 +1,7 @@