Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Creating an option doesn't trigger 'change' event on the form field #16

Closed
fson opened this Issue · 2 comments

3 participants

@fson

When an existing option is selected chosen triggers 'change' event on the underlying select element with

@form_field_jq.trigger "change" ...

When a new option is selected and created, this event does not trigger.

@koenpunt koenpunt closed this
@slothbear

Thanks for this fix – it is exactly what I needed today.

I was wondering, is there anything in the event that signifies it was triggered via Adding A New Option – as opposed to Selecting An Existing Option? I'm currently comparing the selection with existing options by hand.

@koenpunt
Owner

@slothbear There is currently no event that indicates that there has been an option added. We could probably trigger liszt:appended or something alike.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.