Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot set property '_renderItem' of undefined #2831

Closed
amicming opened this issue Feb 8, 2017 · 0 comments
Closed

Uncaught TypeError: Cannot set property '_renderItem' of undefined #2831

amicming opened this issue Feb 8, 2017 · 0 comments

Comments

@amicming
Copy link

amicming commented Feb 8, 2017

This was fixed #2722 and #2737. I also looked this #1668 solution.

I am using rails_admin 1.1.1 , rails 4.2.7.1, jquery-rails 4.2.2 and jquery-ui-rails (5.0.5).

I can easily reproduce this one while selecting any value from dropdown box. I am getting error in line 2 as below.

Latest Firefox and Chrome have this problem.


 _overloadRenderItem: function() {

      this.input.data('ui-autocomplete')._renderItem = function(ul, item) {

        return $('<li></li>')

          .data('ui-autocomplete-item', item)

          .append($('<a></a>')

          .html(item.html || item.id))

          .appendTo(ul);

      };

    },

screen shot 2017-02-08 at 3 14 56 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants