Skip to content

Commit

Permalink
fix: clicking on advanced menu move the focus to the focus to the com…
Browse files Browse the repository at this point in the history
…pression tab, fix #118
  • Loading branch information
selul committed Jul 21, 2019
1 parent 13ce758 commit 178d1fc
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions assets/vue/components/options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
</template>

<script>
import General from "./general.vue";
import Compression from "./compression.vue";
import Watermarks from "./watermarks.vue";
import Resize from "./resize.vue";
import Exclusions from "./exclusions.vue";
import General from "./general.vue";
import Compression from "./compression.vue";
import Watermarks from "./watermarks.vue";
import Resize from "./resize.vue";
import Exclusions from "./exclusions.vue";
import Lazyload from "./lazyload.vue";
export default {
export default {
name: "options",
components: {Lazyload, Exclusions, Resize, Watermarks, Compression, General},
data() {
Expand All @@ -79,6 +79,13 @@
methods: {
ToggleAdvanced() {
this.advancedOpen = !this.advancedOpen;
if (!this.advancedOpen) {
this.tab = 'general';
}
if (this.advancedOpen) {
this.tab = 'compression';
}
},
changeTab(value) {
this.tab = value;
Expand Down

0 comments on commit 178d1fc

Please sign in to comment.