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 574 forks source link

Using BIP with jQuery Color Picker #547

Open ghost opened 8 years ago

ghost commented 8 years ago

I am using the jquery-minicolors-rails gem in my project and would like to use Best in Place on top of it.

Both work when used individually but when both are attached to an input, clicking will create 2 input boxes on top of each other.

Application.js $( document ).ready(function() { $('.bg-color').minicolors(); $(".best_in_place").best_in_place(); });

index.html.erb <%= best_in_place @app, :background_color, :as => :input, class: 'form-control bg-color' %>

Produces this result: _

screen shot 2016-04-28 at 10 32 15 am

_

Any suggestions on making the 2 work together?