FLUID-3647: The keyboard a11y plugin will throw an exception if selectNext is called when there is NO_SELECTION

Metadata

Source
FLUID-3647
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Justin Obara
Created
2010-04-13T17:17:53.000-0400
Updated
2014-03-03T13:43:14.060-0500
Versions
N/A
Fixed Versions
  1. 1.2
Component
  1. Keyboard Accessibility

Description

If you run the keyboard-a11y tests you will notice that test 5.7 is failing due to an exception.

On line 372 of jquery.keyboard-a11y.js

selectionContext.selectedElement().blur();

When NO_SELECTION is specified selectionContext.selectedElement() returns null.

Calling blur() on null throws the exception

Comments

  • Justin Obara commented 2010-04-13T17:28:28.000-0400

    patch FLUID-3647.patch.txt will only call blur() if the return of selectionContext.selectedElement() is truethy.