Skip to content

Commit a6cbd49

Browse files
authored
use onValueChange instead of onChange (#32)
* use onValueChange instead of onChange * 0.83.5
1 parent a03b1b8 commit a6cbd49

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "roamjs-components",
33
"description": "Expansive toolset, utilities, & components for developing RoamJS extensions.",
4-
"version": "0.83.4",
4+
"version": "0.83.5",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"scripts": {

src/components/FormDialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ const FormDialog = <T extends Record<string, unknown>>({
316316
{meta.label}
317317
<NumericInput
318318
value={data[name] as string}
319-
onChange={(e) => setValue(e.target.value)}
319+
onValueChange={(v) => setValue(v)}
320320
autoFocus={index === 0}
321321
/>
322322
</Label>

0 commit comments

Comments
 (0)