Skip to content

Commit 916c5b9

Browse files
committed
asset focus bug fixed
1 parent 4991ce7 commit 916c5b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vue-frontend/warehouse-frontend/src/views/ParentPage.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ export default {
146146
} finally {
147147
this.isAssetScanning = false;
148148
this.assetId = "";
149+
this.$nextTick(() => {
150+
this.$refs.assetId.focus();
151+
});
149152
}
150153
},
151154
async forceAsset(forcedAsset) {
@@ -181,6 +184,9 @@ export default {
181184
console.error("API Error:", error);
182185
} finally {
183186
forcedAsset.isForcing = false;
187+
this.$nextTick(() => {
188+
this.$refs.assetId.focus();
189+
});
184190
}
185191
},
186192
getStatusClass(type) {

0 commit comments

Comments
 (0)