Fixed: while creating new Add Labels the field should be auto focus #2437 (#2438)

* bug:fix recent page hiding last item on scroll #1468

* bug:fix recent page hiding last item on scroll #1468 (#2411)

* fixed add label autofocuse

---------

Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
Prashant Indurkar 2023-11-20 19:00:55 +05:30 committed by sriram veeraghanta
parent 3ea926a908
commit 9d5f835bea
2 changed files with 4 additions and 1 deletions

View File

@ -186,6 +186,7 @@ export const CreateUpdateLabelInline = observer(
id="labelName"
name="name"
type="text"
autofocus
value={value}
onChange={onChange}
ref={ref}

View File

@ -49,7 +49,9 @@ export const RecentPagesList: React.FC<TPagesListProps> = observer((props) => {
return (
<div key={key} className="h-full overflow-hidden pb-9">
<h2 className="text-xl font-semibold capitalize mb-2">{replaceUnderscoreIfSnakeCase(key)}</h2>
<h2 className="text-xl font-semibold capitalize mb-2">
{replaceUnderscoreIfSnakeCase(key)}
</h2>
<PagesView pages={pages[key as keyof RecentPagesResponse]} viewType={viewType} />
</div>
);