Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Focus is not set after clicking quick reply button #2

Closed
derykl opened this issue Nov 18, 2014 · 0 comments
Closed

Focus is not set after clicking quick reply button #2

derykl opened this issue Nov 18, 2014 · 0 comments

Comments

@derykl
Copy link

derykl commented Nov 18, 2014

I'm not sure why or if it's just a quirk with the MyBB theme I'm using, but (at least on Firefox) where the focus is supposed to be set to the quick reply box on line 94 of fastQuote.js, it doesn't get the focus. Perhaps something else is beating the script to it, but I've not been able to find anything obvious.

I went for a "setTimeout" wrapper around the focus call to work around it.

setTimeout(function() { textarea.focus(); }, 100);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant