Skip to content

feat: auto-select quantity input when UOM dialog opens#222

Open
NotAbdelrahmanelsayed wants to merge 1 commit intoBrainWise-DEV:developfrom
NotAbdelrahmanelsayed:feat/auto-select-quantity-in-uom-dialog
Open

feat: auto-select quantity input when UOM dialog opens#222
NotAbdelrahmanelsayed wants to merge 1 commit intoBrainWise-DEV:developfrom
NotAbdelrahmanelsayed:feat/auto-select-quantity-in-uom-dialog

Conversation

@NotAbdelrahmanelsayed
Copy link
Copy Markdown

Summary

  • Add ref="quantityInput" to the quantity <input> in ItemSelectionDialog
  • Import nextTick from Vue
  • When the dialog opens in uom mode, automatically focus and select the quantity field so users can immediately type a new quantity without manually clearing the default value

Behaviour Before / After

Before After
Dialog opens, cursor is not in the quantity field Dialog opens, quantity field is focused and its value is selected — type to overwrite instantly

Testing

  1. Open POS and add an item that has multiple UOMs configured.
  2. Click the item to open the UOM selection dialog.
  3. Verify the quantity input is focused and the default value (1) is selected.
  4. Type a new quantity — it should replace the selected value immediately.

When the ItemSelectionDialog opens in "uom" mode, automatically focus
and select the quantity input so users can immediately type a new value
without needing to manually clear the field.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@NotAbdelrahmanelsayed
Copy link
Copy Markdown
Author

auto-select.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant