fix transition dropdown bug
This commit is contained in:
parent
5d3867558a
commit
642662c8bc
|
@ -28,6 +28,11 @@ export const getBackendUiStore = () => {
|
|||
},
|
||||
},
|
||||
records: {
|
||||
save: () =>
|
||||
store.update(state => {
|
||||
state.selectedView = state.selectedView
|
||||
return state
|
||||
}),
|
||||
delete: () =>
|
||||
store.update(state => {
|
||||
state.selectedView = state.selectedView
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
import { Heading, Body, Button } from "@budibase/bbui"
|
||||
import { FILE_TYPES } from "constants/backend"
|
||||
import api from "builderStore/api"
|
||||
import { fade } from "svelte/transition"
|
||||
|
||||
export let files = []
|
||||
|
||||
|
@ -80,9 +79,10 @@
|
|||
on:dragenter={handleDragOver}
|
||||
on:drop={handleDrop}
|
||||
class:fileDragged>
|
||||
|
||||
<ul>
|
||||
{#if selectedImage}
|
||||
<li transition:fade>
|
||||
<li>
|
||||
<header>
|
||||
<div>
|
||||
<i
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { onMount } from "svelte"
|
||||
import { onMount, tick } from "svelte"
|
||||
import { store, backendUiStore } from "builderStore"
|
||||
import { notifier } from "builderStore/store/notifications"
|
||||
import { compose, map, get, flatten } from "lodash/fp"
|
||||
|
@ -34,12 +34,9 @@
|
|||
return
|
||||
}
|
||||
|
||||
backendUiStore.update(state => {
|
||||
state.selectedView = state.selectedView
|
||||
onClosed()
|
||||
notifier.success("Record saved successfully.")
|
||||
return state
|
||||
})
|
||||
backendUiStore.actions.records.save(recordResponse)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue