mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
Merge pull request #1206 from iamanishroy/ui-bug-fixes
Bug fixes (ROWY-1099, ROWY-1086, ROWY-1087)
This commit is contained in:
@@ -80,6 +80,9 @@ export default function GetStartedChecklist({
|
||||
marginRight: `max(env(safe-area-inset-right), 8px)`,
|
||||
width: 360,
|
||||
},
|
||||
".MuiStepLabel-iconContainer.Mui-active svg": {
|
||||
transform: "rotate(0deg) !important",
|
||||
},
|
||||
},
|
||||
]}
|
||||
>
|
||||
|
||||
@@ -12,16 +12,21 @@ export interface ITableNameProps extends IShortTextComponentProps {
|
||||
|
||||
export default function TableName({ watchedField, ...props }: ITableNameProps) {
|
||||
const {
|
||||
field: { onChange },
|
||||
field: { onChange, value },
|
||||
useFormMethods: { control },
|
||||
disabled,
|
||||
} = props;
|
||||
|
||||
const watchedValue = useWatch({ control, name: watchedField } as any);
|
||||
useEffect(() => {
|
||||
if (!disabled && typeof watchedValue === "string" && !!watchedValue)
|
||||
onChange(startCase(watchedValue));
|
||||
}, [watchedValue, disabled]);
|
||||
if (!disabled) {
|
||||
if (typeof value === "string" && value.trim() !== "") {
|
||||
onChange(value);
|
||||
} else if (typeof watchedValue === "string" && !!watchedValue) {
|
||||
onChange(startCase(watchedValue));
|
||||
}
|
||||
}
|
||||
}, [watchedValue, disabled, onChange, value]);
|
||||
|
||||
return <ShortTextComponent {...props} />;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ export default function PopupContents({
|
||||
onChange={(e) => setQuery(e.target.value)}
|
||||
fullWidth
|
||||
variant="filled"
|
||||
label="Search items"
|
||||
// label="Search items"
|
||||
hiddenLabel
|
||||
placeholder="Search items"
|
||||
InputProps={{
|
||||
|
||||
Reference in New Issue
Block a user