Skip to content

Commit

Permalink
FOUR-12856 Added the inputAttributes to be a computed property
Browse files Browse the repository at this point in the history
  • Loading branch information
josechirivella committed Dec 12, 2023
1 parent d932d6b commit 647c351
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/components/FormDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,6 @@ export default {
return {
validatorErrors: [],
date: "",
inputAttributes: {
class: `${this.inputClass}`,
placeholder: this.placeholder,
name: this.name,
"aria-label": this.ariaLabel,
"tab-index": this.tabIndex,
disabled: this.disabled,
readonly: this.isReadOnly
},
onChangeDate: ""
};
},
Expand All @@ -138,6 +129,17 @@ export default {
isDateDisabled: this.checkMinMaxDateDisabled
};
},
inputAttributes() {
return {
class: `${this.inputClass}`,
placeholder: this.placeholder,
name: this.name,
"aria-label": this.ariaLabel,
"tab-index": this.tabIndex,
disabled: this.disabled,
readonly: this.isReadOnly
};
},
datepicker() {
return this.dataFormat === "datetime";
},
Expand Down

0 comments on commit 647c351

Please sign in to comment.