Skip to content

Commit

Permalink
Update text field and handle parsed number values
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Feb 11, 2024
1 parent a1a3e81 commit bc50e0a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
11 changes: 9 additions & 2 deletions assets/task_cell/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export default function App({ ctx, payload }) {
value={fields[param.field] || ""}
onChange={(event) => handleChange(event, false)}
onBlur={handleBlur}
fullWidth
/>
</div>
)}
Expand Down Expand Up @@ -331,12 +332,18 @@ function TextField({
type = "text",
className,
required = false,
fullWidth = false,
inputRef,
startAdornment,
...props
}) {
return (
<div className="flex flex-col">
<div
className={classNames([
"flex max-w-full flex-col",
fullWidth ? "w-full" : "w-[20ch]",
])}
>
{label && (
<label className="color-gray-800 mb-0.5 block text-sm font-medium">
{label}
Expand All @@ -355,7 +362,7 @@ function TextField({
type={type}
value={value}
className={classNames([
"bg-transparent px-3 py-2 text-sm text-gray-600 placeholder-gray-400 focus:outline-none",
"w-full bg-transparent px-3 py-2 text-sm text-gray-600 placeholder-gray-400 focus:outline-none",
className,
])}
/>
Expand Down
2 changes: 1 addition & 1 deletion lib/assets/task_cell/build/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bc50e0a

Please sign in to comment.