Skip to content

Commit b02a6ee

Browse files
syffspi0
authored andcommitted
fix(form-input): allow readonly to be forced to false when plaintext is enabled (bootstrap-vue#1841)
1 parent 494239b commit b02a6ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/form-input/form-input.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default {
3838
type: this.localType,
3939
disabled: this.disabled,
4040
required: this.required,
41-
readonly: this.readonly || this.plaintext,
41+
readonly: this.readonly || (this.plaintext && this.readonly === null),
4242
placeholder: this.placeholder,
4343
autocomplete: this.autocomplete || null,
4444
'aria-required': this.required ? 'true' : null,
@@ -66,7 +66,7 @@ export default {
6666
},
6767
readonly: {
6868
type: Boolean,
69-
default: false
69+
default: null
7070
},
7171
plaintext: {
7272
type: Boolean,

0 commit comments

Comments
 (0)