ColVis - ColVis_Button acts as a submit button on 'Enter' key-press

ColVis - ColVis_Button acts as a submit button on 'Enter' key-press

bmisr02bmisr02 Posts: 2Questions: 0Answers: 0
edited July 2011 in Bug reports
Thanks, Allan for all the great plug-ins!

In ColVis 1.0.6dev, I've noticed that if 'Enter' is pressed in a textbox input control, AND there are no other submit buttons having positional priority over the ColVis_Button (based on the browser's definition of default submit button priority), then ColVis_Button's 'click' event is triggered, and handled here:

[code]
"_fnDomBaseButton": function(text) {
...
$(nButton).bind(sEvent, function(e) {
that._fnCollectionShow();
e.preventDefault();
});
...
}
[/code]

...so the ColVis checkbox list appears and the default submit action is cancelled. Obviously, having over-riding submit button(s) will circumvent this behavior, but I thought I'd mention it, in case you find it helpful.

Thanks again!
This discussion has been closed.