Skip to content

Commit

Permalink
Fix issue with cancelling ButtonRow and EditableText when another is …
Browse files Browse the repository at this point in the history
…opened
  • Loading branch information
tuomas2 committed Jan 8, 2023
1 parent f0321dd commit 6391644
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions app/bibleview-js/src/components/ButtonRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@
</div>
</template>

<script lang="ts">
let cancel = () => {}
</script>

<script lang="ts" setup>
import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
import {inject, ref, watch} from "vue";
import {useCommon} from "@/composables";
import {eventBus} from "@/eventbus";
import {androidKey} from "@/types/constants";

let cancel = () => {
}

const props = withDefaults(
defineProps<{ showDragHandle: boolean, handleTouch: boolean }>(),
{showDragHandle: false, handleTouch: false}
Expand Down
6 changes: 4 additions & 2 deletions app/bibleview-js/src/components/EditableText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@
</div>
</template>

<script lang="ts">
let cancelOpen = () => {}
</script>

<script lang="ts" setup>
import {inject, ref, watch} from "vue";
import TextEditor from "@/components/TextEditor.vue";
import {useCommon} from "@/composables";
import {exportModeKey} from "@/types/constants";
import {Nullable} from "@/types/common";

let cancelOpen = () => {
}

const emit = defineEmits(["closed", "save", "opened"]);
const props = withDefaults(defineProps<{
Expand Down

0 comments on commit 6391644

Please sign in to comment.