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

typeaheadjs error

foxzool opened this issue · comments

commented

I have include the js for typeahead

//= require editable/bootstrap-editable
//= require editable/rails
//= require editable/inputs-ext/typeahead-editable
//= require editable/inputs-ext/typeahead

when i click the xeditable

= editable @profile, :hospital, type: 'typeaheadjs'

got a error

Uncaught TypeError: Cannot read property 'name' of null typeahead.js?body=1:1086

Hi,

I think this is the required order, since typeahead-editable is based on bootstrap's typehead

//= require jquery
//= require bootstrap-sprockets
//= require editable/bootstrap-editable
//= require editable/inputs-ext/typeahead
//= require editable/inputs-ext/typeahead-editable 
//= require editable/rails