Skip to content

Commit

Permalink
Merge pull request #410 from ProcessMaker/bugfix/FOUR-12856
Browse files Browse the repository at this point in the history
FOUR-12856 Added the inputAttributes to be a computed property
  • Loading branch information
ryancooley authored Dec 12, 2023
2 parents d932d6b + 647c351 commit 9e1212e
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 9e1212e

Please sign in to comment.