@@ -148,8 +148,11 @@ include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php")
},
methods: {
async doGlobalSearch() {
- if (this.globalSearch.length > 3) {
+ if (this.globalSearch.length > 0) {
this.globalSearchModal = true;
+ this.$nextTick(() => {
+ this.$refs.globalSearchModal.focus();
+ });
}
},
async clickTicketNumber(ticketNumber) {
@@ -159,6 +162,9 @@ include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/header.php")
this.selectedTicketNumber = ticketNumber;
const response = await axios.post(`${window['TT_CONFIG']['HISTORIC_TICKET_API_URL']}?do=getHistoricTicketMessages`, {ticketNumber});
this.selectedTicketData = response.data;
+ this.$nextTick(() => {
+ this.$refs.selectedTicketModal.focus();
+ });
}
}
})