File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import Data.Nullable as Nullable
1313import Data.Number (isNaN )
1414import Data.Number.Format (fixed , toStringWith )
1515import Effect.Console (log )
16- import Global (readInt )
16+ import Global (readFloat )
1717import Lumi.Components.Column (column_ )
1818import Lumi.Components.DropdownButton (dropdownIcon , dropdownIconDefaults )
1919import Lumi.Components.EditableTable (editableTable , editableTableDefaults )
@@ -82,9 +82,10 @@ docs = unit # make component
8282 , { label: " Price"
8383 , renderCell: \row -> Input .input Input .number
8484 { value = show row.price
85+ , step = Nullable .notNull $ Input.Step 0.01
8586 , onChange = handler targetValue \value ->
8687 updateRow self $ fromMaybe row do
87- value' <- readInt 10 <$> value
88+ value' <- readFloat <$> value
8889 pure if isNaN value'
8990 then row
9091 else row { price = value' }
You can’t perform that action at this time.
0 commit comments