werein / x-editable-rails

Edit fields easily with X-Editable helper

Home Page:https://wereinhq.com/guides/x-editable-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with popover

Tonkonozhenko opened this issue · comments

Trying using xeditable with popover I have such issue

Uncaught Error: no such method 'show' for popover widget instance jquery.js?body=1:517
jQuery.extend.error jquery.js?body=1:517
(anonymous function) jquery.ui.widget.js?body=1:187
jQuery.extend.each jquery.js?body=1:658
jQuery.fn.jQuery.each jquery.js?body=1:267
$.fn.(anonymous function) jquery.ui.widget.js?body=1:179
Popup.call bootstrap-editable.js?body=1:1031
$.extend.innerShow bootstrap-editable.js?body=1:4735
Popup.show bootstrap-editable.js?body=1:1091
Editable.show bootstrap-editable.js?body=1:1803
Editable.toggle bootstrap-editable.js?body=1:1825
(anonymous function) bootstrap-editable.js?body=1:1548
proxy jquery.js?body=1:828
jQuery.event.dispatch jquery.js?body=1:5096
elemData.handle jquery.js?body=1:4767

Gemfile

gem 'jquery-rails', '~> 3.0.4'
gem 'bootstrap-sass', '~> 3.0.3.0'
gem 'font-awesome-rails', '~> 4.0.3.0'
gem 'jquery-fileupload-rails', '~> 0.4.1'
gem 'x-editable-rails', '~> 1.5.2', github: 'werein/x-editable-rails'

Hi, please look at demo, it's fully working example with minimum configuration.

I tracked this down to using active_admin, which provides its own implementation of a Popover plugin to jQuery. The active_admin one was winning, and is clearly incompatible. Check to see if any of your other libraries are conflicting like this.

Yes, It was a problem with active_admin.
Thx you @jlaxson

I am having the same problem, how were you able to fix the conflict?

Make sure you aren't loading/including active_admin.js, or any other library that provides a conflicting Popover implementation.