Skip to content

Commit 0fe8109

Browse files
authored
fix: taxonomy max depth and autofocus during tag edits (#2977)
1 parent 6be74f4 commit 0fe8109

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/taxonomy/taxonomy-detail/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
* tags exceeding this depth, they will still be rendered, but further nesting will be blocked.
77
* * **Sync Required**: This must match `TAXONOMY_MAX_DEPTH` in the openedx-core backend.
88
*/
9-
const TAXONOMY_MAX_DEPTH = 3;
9+
const TAXONOMY_MAX_DEPTH = 5;
1010

1111
export { TAXONOMY_MAX_DEPTH };

src/taxonomy/tree-table/EditableCell.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const EditableCell = ({
4848
useEffect(() => {
4949
if (autoFocus && inputRef.current) {
5050
inputRef.current.focus();
51-
inputRef.current.select();
5251
}
5352
}, [inputRef.current]); // autoFocus explicitly not a dependency, to avoid unexpected focus change.
5453

0 commit comments

Comments
 (0)