Open ghost opened 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.
jquery-minicolors-rails
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(); });
$( 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' %>
<%= best_in_place @app, :background_color, :as => :input, class: 'form-control bg-color' %>
Produces this result: _
_
Any suggestions on making the 2 work together?
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: _
_
Any suggestions on making the 2 work together?