Closed aerda closed 3 months ago
Sure, trim sounds reasonable.
Feel free to PR or I can take a look at it within the next few days, schedule permitting.
setPkgQuery( /* @type {HTMLInputElement} / (e.target).value.trim(), )
<input
autocorrect="off"
autocapitalize="none"
enterkeyhint="search"
class="py-2 px-4 w-full text(xl md:3xl center [#111]) bg-input(& dark:dark) drop-shadow-lg rounded-lg hocus:(outline(2 & primary))"
placeholder="Provide a package name"
value={pkgQuery}
onInput={(e) =>
setPkgQuery(/** @type {HTMLInputElement} */ (e.target).value)
}
/>
Sure, trim sounds reasonable.
Feel free to PR or I can take a look at it within the next few days, schedule permitting.
remote: Permission to rschristian/deptree.git denied to aerda. fatal: unable to access 'https://github.com/rschristian/deptree.git/': The requested URL returned error: 403
You need to fork the repo and make the changes there, you can't push directly to projects you do not own/haven't been invited to.
Here's some instructions if you're new to GitHub:
Fixed in 4631b961bb827afba702bbee7a17b171f95b7415
Description
When pasting text into the input field, there's a risk of accidentally including an extra space at the beginning. This leads to an "Invalid package query" error.
Steps to reproduce:
Expected behavior:
The input field should either: