Bug 986021 - Add Resource: onchange event behaving strangely in Firefox if item from menu focused by cursor then focus switched elsewhere
Add Resource: onchange event behaving strangely in Firefox if item from menu ...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: luci (Show other bugs)
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Jan Pokorný
Depends On:
  Show dependency treegraph
Reported: 2013-07-18 15:02 EDT by Jan Pokorný
Modified: 2016-08-24 17:20 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-08-24 17:20:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Pokorný 2013-07-18 15:02:20 EDT
This reproduces 100% for me at FF19@F17 and FF22@F18:

1. navigate to Resources tab for particular cluster
2. click Add, Add Resource to Cluster dialog will open
3. click once on "-- Select a Resource --"; drop-down menu will drop
4. focus any active item here, but do not click
5. move the cursor at any other place in the page except the area covered
   by drop-down menu (the original bar of the drop-down menu is OK)
6. click once; nothing happens (even if the cursor is over Cancel button!)
7. either click once more or press Esc

Actual results:
Dialog behaves as if the last focused item in the drop-down menu was
really selected (with a click).

Expected results:
Dialog does not mimic item selection, instead the input events are
handled as expected (e.g., if Cancel button was clicked, dialog is
closed immediately).

This might eventually be a bug in Firefox or jQuery (might be worth testing
with newer jQuery/UI).  Also might be worth testing some other browsers.

Also, I've found this pointer:

P.S. I think I hit this issue some longer time ago.  Unfortunately no
evidence of bug report.
Comment 1 Jan Pokorný 2013-07-19 08:39:51 EDT
Places that are equally affected by this (perhaps still non-exhaustive):

- Fence Devices > Add > Add Fence Device (Instance) dialog
- Service Groups > Add > Add Service Group to Cluster > Add Resource
  > Add Resource to Service dialog

Note that it probably only matter of drop-downs with "onchange" event
handler, at others no strange behavior is observed, for instance:

  Service Groups > particular group > Start on node... drop-down menu
Comment 2 Radek Steiger 2013-07-19 10:29:43 EDT
Checked on other browsers: 
 - Google Chrome 28.0
 - Konqueror 4.8.4
 - Epiphany 3.4.2

None of them seem to be affected. The bug may be related to Gecko-based browsers only.
Comment 6 Jan Pokorný 2016-08-24 17:20:22 EDT
Minor issue, let's forget about it, owing to the point in the release

Note You need to log in before you can comment on or make changes to this bug.