Repository navigation
Replies: 3 comments 3 replies
|
This happens when the accessory has 0 units remaining in stock. In Check the Remaining count displayed right above the input on that checkout page. If it shows 0, head over to Accessories, click Edit on that accessory, and raise the Quantity field so there is available stock. As soon as remaining is at least 1, the |
|
There were two of the item remaining in stock - so it shouldn't have been that.
Swapping language from English uk to English us seems to have potentially fixed it?
In any case, I've managed to check out the accessory now
Sent from my mobile, apologies for any typos or brevity
…
On 26 Nov 2026 at 19:09, Vishal Sharma ***@***.***> wrote:
This happens when the accessory has 0 units remaining in stock.
In resources/views/accessories/checkout.blade.php, the quantity input is generated with min="1" and max="{{ $accessory->numRemaining() }}". When the remaining count drops to 0, Snipe-IT renders <input type="number" min="1" max="0">. Because max is lower than min, both Chromium and Firefox enforce native HTML5 range bounds, which locks the input and prevents the arrow buttons from stepping up.
Check the Remaining count displayed right above the input on that checkout page. If it shows 0, head over to Accessories, click Edit on that accessory, and raise the Quantity field so there is available stock. As soon as remaining is at least 1, the max constraint expands and the input field will accept numbers normally.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
Still sounds like a bug to me, especially as its not possible to type into the field
Sent from my mobile, apologies for any typos or brevity
…
On 27 Nov 2026 at 14:46, Vishal Sharma ***@***.***> wrote:
In accessories/checkout.blade.php, the field is rendered as <input type="number" value="{{ old('checkout_qty', 1) }}" min="1" max="2">.
If an initial submit happens with an empty or cleared value, old('checkout_qty') repopulates blank. On Linux Chromium and Firefox, native HTML5 number inputs trapped in an empty state with min/max bounds won't step with arrows until a digit is typed. Changing the language triggered a fresh GET request, which restored the default server value="1".
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|

Glad to hear you got the accessory checked out!
Looking at the screenshot, Total and Remaining were both 2, so the validator was enforcing a maximum of 2 ("Please enter a value less than or equal to 2"). The quantity box in the screenshot was completely blank, and when that field gets cleared or submitted empty, the browser validator trips on the missing or invalid value.
Swapping the language profile reloads the user session and resets the form state, which restored the default quantity of 1 (generated by the checkout template) so it could submit cleanly.