R
ragtek
Guest
If you have a very long text in a inputfield with the autoselect class, chrome won't select the text and firefox will crash
In the js console you'll see
It's probably this jquery bug: http://bugs.jquery.com/ticket/10476
My fix was to change the focus event with click
In the js console you'll see
my inputfield value wasUncaught RangeError: Maximum call stack size exceeded
Code:
keywords=test23&title_only=0&date=0&users=&child_nodes=0&user_content=&order=date&group_discussion=0&type=
It's probably this jquery bug: http://bugs.jquery.com/ticket/10476
My fix was to change the focus event with click
Code:
XenForo.AutoSelect = function($input)
{
$input.bind('focus', function(e)
{
$input.focus().select();
console.log('input select');
return false;
});
};