Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#5172 closed feature (wontfix)

Allow cancelling of all autocomplete events

Reported by: Rwhitbeck Owned by:
Priority: minor Milestone:
Component: ui.autocomplete Version: 1.8rc1
Keywords: Cc:
Blocked by: Blocking:

Description

I would like to be able to cancel the close event, for weird client-requirement reasons.

It seems reasonable to make all the events cancelable. In this case of close, the code change is simple:

From:

this._trigger( "close", event ); this.menu.element.remove(); this.menu = null;

To:

if ( false !== self._trigger( "close", event ) ) {

this.menu.element.remove(); this.menu = null;

}

see forum: http://forum.jquery.com/topic/allow-cancelling-of-all-autocomplete-events

Change History (3)

comment:1 Changed 10 years ago by Scott González

Version: 1.7.21.8rc1

This requires adding a beforeclose event.

comment:2 Changed 10 years ago by Scott González

Resolution: wontfix
Status: newclosed

comment:3 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.