Skip to content

Commit

Permalink
fix(dialog): reset form after dialog closed and optimize input order
Browse files Browse the repository at this point in the history
  • Loading branch information
gearsdigital committed Aug 14, 2022
1 parent b2999fb commit 8a86da7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions src/components/dialogs/EnhancedToolbarLinkDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export default {
label: this.$t("title"),
type: "text",
counter: false,
icon: "title",
width: "1/2"
icon: "title"
},
anchor: {
label: this.$t(
Expand All @@ -56,7 +55,8 @@ export default {
target: {
label: this.$t("open.newWindow"),
type: "toggle",
text: [this.$t("no"), this.$t("yes")]
text: [this.$t("no"), this.$t("yes")],
width: "1/2"
}
};
},
Expand All @@ -73,6 +73,14 @@ export default {
close() {
this.$emit("cancel");
this.removeListener();
this.link = {
href: null,
title: null,
target: false,
text: null,
anchor: null
};
},
submit() {
this.$emit(
Expand Down

0 comments on commit 8a86da7

Please sign in to comment.