Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/components/NcPasswordField/NcPasswordField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default {
<template>
<NcInputField v-bind="$props"
ref="inputField"
:autofocus="$attrs.autofocus"
:type="isPasswordHidden ? 'password' : 'text'"
:show-trailing-button="true"
:helper-text="computedHelperText"
Expand Down Expand Up @@ -217,6 +216,15 @@ export default {
default: '',
},

/**
* The autofocus property defines whether the input should
* automatically receive focus on page load
*/
autofocus: {
type: Boolean,
default: false,
},

/**
* The minlength property defines the minimum number of characters
* (as UTF-16 code units) the user can enter
Expand Down
28 changes: 27 additions & 1 deletion src/components/NcTextField/NcTextField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export default {
<template>
<NcInputField v-bind="$props"
ref="inputField"
:autofocus="$attrs.autofocus"
:trailing-button-label="clearTextLabel"
v-on="$listeners"
@input="handleInput">
Expand Down Expand Up @@ -362,6 +361,33 @@ export default {
].includes(value),
},

/**
* The autofocus property defines whether the input should
* automatically receive focus on page load
*/
autofocus: {
type: Boolean,
default: false,
},

/**
* The minlength property defines the minimum number of characters
* (as UTF-16 code units) the user can enter
*/
minlength: {
type: Number,
default: 0,
},

/**
* The maxlength property defines the maximum number of characters
* (as UTF-16 code units) the user can enter
*/
maxlength: {
type: Number,
default: null,
},

/**
* Allow to disable spellchecking
*/
Expand Down