resolves #403 - preventDefault for click on anchor
This commit is contained in:
parent
47bc14148f
commit
cf23dc522d
|
@ -90,6 +90,8 @@ class Chosen extends AbstractChosen
|
||||||
if @is_multiple
|
if @is_multiple
|
||||||
@search_choices.click (evt) => this.choices_click(evt)
|
@search_choices.click (evt) => this.choices_click(evt)
|
||||||
@search_field.focus (evt) => this.input_focus(evt)
|
@search_field.focus (evt) => this.input_focus(evt)
|
||||||
|
else
|
||||||
|
@container.click (evt) => evt.preventDefault() # gobble click of anchor
|
||||||
|
|
||||||
search_field_disabled: ->
|
search_field_disabled: ->
|
||||||
@is_disabled = @form_field_jq[0].disabled
|
@is_disabled = @form_field_jq[0].disabled
|
||||||
|
|
|
@ -83,6 +83,8 @@ class Chosen extends AbstractChosen
|
||||||
if @is_multiple
|
if @is_multiple
|
||||||
@search_choices.observe "click", (evt) => this.choices_click(evt)
|
@search_choices.observe "click", (evt) => this.choices_click(evt)
|
||||||
@search_field.observe "focus", (evt) => this.input_focus(evt)
|
@search_field.observe "focus", (evt) => this.input_focus(evt)
|
||||||
|
else
|
||||||
|
@container.observe "click", (evt) => evt.preventDefault() # gobble click of anchor
|
||||||
|
|
||||||
search_field_disabled: ->
|
search_field_disabled: ->
|
||||||
@is_disabled = @form_field.disabled
|
@is_disabled = @form_field.disabled
|
||||||
|
|
Loading…
Reference in a new issue