Jaxel
Well-known member
- Affected version
- 2.3.0
If you have an auto-complete textbox with auto-submit, within an ajax-submit form, ajax-submit will not be processed when clicking on an auto-complete entry.
Issue is explained here:
Fix is below: In
This should actually be:
Issue is explained here:
I have a form field, with a username search field. This field has an AC autosubmit function:
I then prevent the default function on this field to stop the page reload and simply reload a...
Code:
<xf:form action="{{ link('ewr-medio/add-user', $media) }}" class="block" ajax="true" data-xf-init="medio-taguser">
<div class="block-container">
<h3 class="block-minorHeader">{{ phrase('EWRmedio_add_user') }}</h3>
<div class="block-body block-row">
<xf:textbox name="usernames" ac="single" id="media-adduser" data-autosubmit="true" />
</div>
</div>
</xf:form>
- Jaxel
- Replies: 14
- Forum: XenForo development discussions
Fix is below: In
js\xf\core_handlers.js
line 2212:
Code:
if (this.options.autosubmit)
{
this.target.closest('form').submit()
}
This should actually be:
Code:
if (this.options.autosubmit)
{
XF.trigger(this.target.closest('form'), 'submit');
}