Skip to content

Commit

Permalink
Fix DateRangeInput bug (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
argaen authored Oct 6, 2024
1 parent 47f1163 commit 29d8474
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Binary file modified public/sql-wasm.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports[`MainSplit renders with empty data 1`] = `
class="w-full text-right m-0"
hidden=""
name="splits.0.value"
step="0.001"
step="any"
type="number"
/>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exports[`SplitsField renders with default values 1`] = `
class="w-full text-right m-0"
hidden=""
name="splits.0.value"
step="0.001"
step="any"
type="number"
/>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports[`TransactionForm renders as expected with action add 1`] = `
class="w-full text-right m-0"
hidden=""
name="splits.0.value"
step="0.001"
step="any"
type="number"
/>
<span
Expand Down Expand Up @@ -428,7 +428,7 @@ exports[`TransactionForm renders as expected with action delete 1`] = `
disabled=""
hidden=""
name="splits.0.value"
step="0.001"
step="any"
type="number"
/>
<span
Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/transaction/MainSplit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function MainSplit({
aria-label="splits.0.value"
className="w-full text-right m-0"
type="number"
step="0.001"
step="any"
disabled={disabled}
hidden={txCurrency.mnemonic === account.commodity.mnemonic}
onChange={(e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/layout/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function Topbar(): JSX.Element {
onChange={
(newValue) => {
if (newValue) {
queryClient.setQueryData(['state', 'interval'], interval);
queryClient.setQueryData(['state', 'interval'], newValue);
}
}
}
Expand Down

0 comments on commit 29d8474

Please sign in to comment.