FLUID-6565: Using the enter/space keys on adjusters inputs submits the Prefs Framework form

Metadata

Source
FLUID-6565
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2020-10-27T16:46:04.998-0400
Updated
2020-10-28T09:52:39.288-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Prefs Framework
  2. UI Options

Description

Steps to reproduce:

  1. Open the UI Options demo
  2. Open the show preferences panel
  3. Using the keyboard select one of the contrast themes
  4. Press the "enter" key
  5. Notice that the panel disappears because the form submitted

It appears the issue is related to FLUID-6539 and the buttons for the switch are triggering the form to submit. This is on the same as FLUID-6507 which submits the form when there is only one text input field.

The solution may be just to update the button type to "button".

Comments

  • Cindy Li commented 2020-10-28T09:52:35.905-0400

    The pull request that fixes this issue has been merged into the project repo main branch at this commit.