Skip to content

Commit

Permalink
Disable autofocus, opens #2370
Browse files Browse the repository at this point in the history
  • Loading branch information
adammertel committed Jan 3, 2025
1 parent 5c8b118 commit b3d8704
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { EntityEnums } from "@shared/enums";
import { IEntity, IReference } from "@shared/types";
import { excludedSuggesterEntities } from "Theme/constants";
import {
EntityDropzone,
EntityTag,
EntitySuggester,
EntityTag,
} from "components/advanced";
import React from "react";
import { StyledGridValue } from "./EntityReferenceTableStyles";
import { IEntity, IReference } from "@shared/types";

interface EntityReferenceTableValue {
reference: IReference;
Expand Down Expand Up @@ -86,7 +86,7 @@ export const EntityReferenceTableValue: React.FC<EntityReferenceTableValue> = ({
isInsideTemplate={isInsideTemplate}
territoryParentId={territoryParentId}
initTyped={initValueTyped}
autoFocus={initValueTyped !== undefined}
// autoFocus={initValueTyped !== undefined}
disabled={disabled}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { partitivityDict, virtualityDict } from "@shared/dictionaries";
import { IEntity, IProp } from "@shared/types";
import { excludedSuggesterEntities } from "Theme/constants";
import { AttributeIcon, Button } from "components";
Expand All @@ -15,7 +16,6 @@ import {
StyledAttributesFlexRow,
StyledTagGrid,
} from "./PropGroupRowStyles";
import { partitivityDict, virtualityDict } from "@shared/dictionaries";

interface PropGroupRowValue {
propValueEntity: IEntity;
Expand Down Expand Up @@ -145,7 +145,7 @@ export const PropGroupRowValue: React.FC<PropGroupRowValue> = ({
true
);
}}
autoFocus={prop.type.entityId !== ""}
// autoFocus={prop.type.entityId !== ""}
placeholder="value"
openDetailOnCreate={openDetailOnCreate}
categoryTypes={classesPropValue}
Expand Down

0 comments on commit b3d8704

Please sign in to comment.