quick reply gaining focus on topic view
when you go to a topic from the message index the quick reply gains focus and you can not go to the newest post or the top of the page without clicking out of the quick reply first.
Confirmed.
I thought I fixed this before.
a5353cb83ba4a684ddea73d3e9afed655d1a3e25
well it is still happening with the most recent checkout as of midnight EST today.
Same, site was updated midnight GMT+2.
that commit fixed a different issue. it was not putting focus to the quick reply that i could see at that time and not everyone could duplicate that issue. for example i asked antes to test it on my test install and he could not duplicate that issue.
We enabled autoFocus, https://github.com/SimpleMachines/SMF2.1/blob/release-2.1/Themes/default/scripts/jquery.sceditor.js#L5988 can you disable that and try again?
does not fully fix it. the issue that live fixed seems to have returned.
need to also remove the base.blur on 2087 of the same file.
Adding autofocus : false, to the editor instance seems to fix the issue
Why do we need to modify the sceditor.js directly? I would rather prefer not doing that if we can avoid it.
Can't replicate the "other issue" and I have no idea about it, a better description of all the issues may be handy...
i could always duplicate it on opera or firefox, i would go to a topic new or old and not be at the new reply or top of the topic view.
you could always duplicate what exactly?
Again, I need way more details.
if I click on the "new" link I get redirected to the first new message. Even when using the full editor on quick reply.
I can reproduce it on my test install which was just updated last night. Firefox 31.1 in openSUSE 31.1 (haven't tested it with Windows or other browsers).
But exactly WHAT you can reproduce? the "remove blur()" thing or the auto focus one?
This happens to me as well. Clicking on a topic sends you to quick reply instead of to the first post. If clicking to see the last post in a thread it does the same thing. (Using Firefox)
i dont know which version of sceditor we are using but their latest version has autofocus false yet we have it as true.
https://github.com/samclarke/SCEditor/blob/master/src/jquery.sceditor.js#L5987
Doesn't really matter, like I said, it can be solved pretty easily by adding
autofocus : false,
When the editor is initialized.
The "blur();" thing is the one I have no idea about.... no one seems to care to actually EXPLAIN what that issue is or why it is a different issue from the autofocus one...
the blur issue is when you load the topic and it does not go to the top of the page or to the new message.
https://github.com/SimpleMachines/SMF2.1/issues/2171 explains it somewhat. it seems to not occur for everyone as i had antes test it and he could not duplicate it on my install where 2 of my users could.
The reason for changing autofocus was to auto-focus the editor box on the main reply page (kind of annoying to click reply then have to click inside the box before you can start typing). This seems to be a side-effect of that, so we'll need to find another way to handle that situation.