mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-22 10:08:42 -06:00
chore: fixing rabbitai issues
This commit is contained in:
@@ -123,7 +123,7 @@ export const ThemeStyling = ({
|
||||
form.setValue("buttonBorderRadius", 4, { shouldDirty: true });
|
||||
|
||||
// 3. Inputs (Card-like style)
|
||||
form.setValue("inputBgColor.light", derivedInputBg, { shouldDirty: true });
|
||||
form.setValue("inputColor.light", derivedInputBg, { shouldDirty: true });
|
||||
form.setValue("inputBorderColor.light", derivedCardBorder, { shouldDirty: true }); // Match card border
|
||||
form.setValue("inputTextColor.light", "#0f172a", { shouldDirty: true });
|
||||
form.setValue("inputBorderRadius", 8, { shouldDirty: true }); // Match roundness
|
||||
|
||||
@@ -142,7 +142,7 @@ export const Modal = ({
|
||||
ref={modalRef}
|
||||
style={{
|
||||
...scalingClasses,
|
||||
...(borderRadius && {
|
||||
...(borderRadius !== undefined && {
|
||||
borderRadius: typeof borderRadius === "number" ? `${borderRadius}px` : borderRadius,
|
||||
}),
|
||||
...(background && {
|
||||
|
||||
@@ -88,7 +88,10 @@ export const NumberField = ({
|
||||
<Input
|
||||
type="number"
|
||||
{...field}
|
||||
onChange={(e) => field.onChange(e.target.valueAsNumber)}
|
||||
onChange={(e) => {
|
||||
const val = e.target.valueAsNumber;
|
||||
field.onChange(Number.isNaN(val) ? null : val);
|
||||
}}
|
||||
step={step}
|
||||
max={max}
|
||||
className="text-xs"
|
||||
|
||||
Reference in New Issue
Block a user