Skip to content

Commit

Permalink
Bug fix for focused input
Browse files Browse the repository at this point in the history
  • Loading branch information
prokawsar committed Aug 12, 2024
1 parent 41dbc56 commit 80146bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib/elements/PaperItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<div
id={paper.id}
class="flex flex-row items-center justify-between rounded"
in:receive={{ key: paper.id }}
out:send={{ key: paper.id }}
in:receive={{ key: paper.id, duration: 250 }}
out:send={{ key: paper.id, duration: 250 }}
>
<div class="flex flex-row gap-[3px] items-center overflow-x-auto">
<button
Expand Down
1 change: 0 additions & 1 deletion src/routes/(app)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import Loader from '$lib/elements/Loader.svelte'
import mixpanel from 'mixpanel-browser'
import { slide } from 'svelte/transition'
import { supabase } from '$lib/db/supabaseClient'
import { Toaster } from 'svelte-sonner'
import Icon from '@iconify/svelte'
import Modal from '$lib/elements/Modal.svelte'
Expand Down
6 changes: 4 additions & 2 deletions src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
paperCount = paperCount.filter((field) => field.id != idx)
if (perPaperResult.has(idx)) perPaperResult.delete(idx)
perPaperResult = perPaperResult
getAllInputs()
setTimeout(() => {
getAllInputs()
}, 300)
}
const calculatePaperCost = async () => {
Expand Down Expand Up @@ -131,7 +133,7 @@
}
onMount(async () => {
inputs = inputGroupRef.querySelectorAll('input')
await getAllInputs()
setFocus()
$totalHistoryStore = await getTotalHistory()
})
Expand Down

0 comments on commit 80146bf

Please sign in to comment.