bernat / best_in_place

A RESTful unobtrusive jQuery Inplace-Editor and a helper as a Rails Gem
http://blog.bernatfarrero.com/in-place-editing-with-javascript-jquery-and-rails-3/
1.2k stars 571 forks source link

Add explicit selector to input so getValue can get the correct element #528

Open zamakkat opened 8 years ago

zamakkat commented 8 years ago

Improves compatibility with Select2. Select2 will create its own input field before the default input field used by best_in_place. Thus the returned value will not be that of the best_in_place's input.

This PR adds a selector class so the selector for the input value is more deterministic. Ref: Issue #510