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 GitHub
parent c1eb5055e5
commit 61d4e2e016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -49,7 +49,9 @@ export const RecentPagesList: React.FC<TPagesListProps> = observer((props) => {
return ( return (
<div key={key} className="h-full overflow-hidden pb-9"> <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} /> <PagesView pages={pages[key as keyof RecentPagesResponse]} viewType={viewType} />
</div> </div>
); );