Added 'type=search' and 'name=search' attributes to SearchBox in TemplateContainer

This commit is contained in:
Meet Patel
2023-08-04 22:22:42 +05:30
parent 34c4e9bc1a
commit e9e3de2ce8
2 changed files with 2 additions and 3 deletions

View File

@@ -46,6 +46,8 @@ export default function TemplateContainerWithPreview({
onChange={(e) => setTemplateSearch(e.target.value)}
placeholder={"Search..."}
className="block rounded-md border border-slate-100 bg-white shadow-sm focus:border-slate-500 focus:outline-none focus:ring-0 sm:text-sm md:w-auto "
type="search"
name="search"
/>
</div>
</div>

View File

@@ -20,9 +20,6 @@ const SearchBox = React.forwardRef<HTMLInputElement, InputProps>(({ className, .
)}
ref={ref}
{...props}
type="search"
name="search"
placeholder="Search..."
/>
<div className="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3">
<Search className="h-5 w-5 text-gray-400" />