mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
Fix input display
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
46ac2782f1
commit
c85eb46a43
@ -115,6 +115,14 @@ const InputUID = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME: we need to find a better way to autofill the input when it is required.
|
||||||
|
// useEffect(() => {
|
||||||
|
// if (!value && validations.required) {
|
||||||
|
// generateUid.current(true);
|
||||||
|
// }
|
||||||
|
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
// }, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (
|
if (
|
||||||
debouncedValue &&
|
debouncedValue &&
|
||||||
|
@ -118,7 +118,7 @@ function ListView({
|
|||||||
const [isFilterPickerOpen, setFilterPickerState] = useState(false);
|
const [isFilterPickerOpen, setFilterPickerState] = useState(false);
|
||||||
const [idToDelete, setIdToDelete] = useState(null);
|
const [idToDelete, setIdToDelete] = useState(null);
|
||||||
const contentType = layout.contentType;
|
const contentType = layout.contentType;
|
||||||
const hasDraftAndPublish = contentType.options.draftAndPublish || false;
|
const hasDraftAndPublish = get(contentType, 'options.draftAndPublish', false);
|
||||||
const allAllowedHeaders = useMemo(() => getAllAllowedHeaders(attributes), [attributes]);
|
const allAllowedHeaders = useMemo(() => getAllAllowedHeaders(attributes), [attributes]);
|
||||||
|
|
||||||
const filters = useMemo(() => {
|
const filters = useMemo(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user