krazkidd / lineup

Softball lineup editor made with Nuxt 3 (Vue.js 3)
https://lineup.app.xericode.net
GNU Affero General Public License v3.0
3 stars 2 forks source link

Can't delete players on mobile #18

Open krazkidd opened 9 months ago

krazkidd commented 9 months ago
  1. Navigate to /lineup/lineup.
  2. Add a player.
  3. Select the player <div> element so that it is focused/highlighted.
  4. ???

On desktop, you delete a player by pressing backspace in step 4. This is not possible on mobile without somehow manually pulling up the keyboard.


This can be fixed in a couple of ways, either:

a. Use long press event to trigger a prompt. b. Delete the player if the user has the name input field focused and they press backspace when the field is empty. (This should ideally also trigger a prompt but a new issue can be created for that.)

If a prompt is added, it should be a PrimeVue dialog encapsulated in an SFC.