fix: minor fix

This commit is contained in:
Shariq Ansari 2023-10-30 18:26:33 +05:30
parent ac393773be
commit 244b2cbb60
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ function delete_tab(with_children) {
<button
class="remove-tab-btn btn btn-xs"
:title="__('Remove tab')"
@click="remove_tab"
@click.stop="remove_tab"
>
<div v-html="frappe.utils.icon('remove', 'xs')"></div>
</button>

View file

@ -319,7 +319,7 @@ export const useStore = defineStore("form-builder-store", () => {
// scroll to active tab
nextTick(() => {
$(".tabs .tab.active")[0].scrollIntoView({
$(".tabs .tab.active")[0]?.scrollIntoView({
behavior: "smooth",
inline: "center",
block: "nearest",