I have a Draggable object that contains a SELECT with some OPTION tags.
When I select one of the OPTION tags, the entire Draggable acts as
though it is being dragged.
There is code in the Draggable object to stop this for Firefox:
initDrag: function(event) {
if(Event.isLeftClick(event)) {
// abort on form elements, fixes a Firefox issue
var src = Event.element(event);
log(''initDrag: '' + src.tagName);
if(src.tagName && (
src.tagName==''INPUT'' ||
src.tagName==''SELECT'' ||
src.tagName==''BUTTON'' ||
src.tagName==''TEXTAREA'')) return;
If I add ''OPTION'' to the ''if'' statement,
then the problem goes away.
if(src.tagName && (
src.tagName==''INPUT'' ||
src.tagName==''SELECT'' ||
src.tagName==''OPTION'' ||
src.tagName==''BUTTON'' ||
src.tagName==''TEXTAREA'')) return;
This behavior is new in the trunk of the Rails tree - I''m running on
the
Edge here! I don''t know what version I had earlier (less than 3 weeks
old), but I''m currently running with revision 3314 of the trunk.
What changed here to make this suddenly break? And is my fix the
correct one?
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs