Fixed Tag editor: Text box not active by default

ah. this would be annoying if not fixed before stable release. i still hope someday xenforo would have cursor in editor when i load the reply page directly like here: https://xenforo.com/community/threads/tag-editor-text-box-not-active-by-default.220168/reply. this is how i usually post on threads on my board and focus in text editor would save me a few seconds daily lol.
 
The problem is tagify. It uses a span element as input. The form selector skips it.
A workaround would be some JS that extends XF.autoFocusWithin but since it's in beta, I don't think it's needed.

In core.js, within XF.autoFocusWithin, there's a line like the one below. .tagify__input should be added or something that suits.
Code:
const formEls = form.querySelectorAll('input, textarea, select, button')
const formEls = form.querySelectorAll('input, textarea, select, button, .tagify__input')

To see it working, you can change it by hand and put this in your src/config.php file.
Code:
$config['development']['fullJs'] = true;
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 3).

Change log:
Ensure Tagify inputs can be autofocused.
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom