Giter Site home page Giter Site logo

bootstrap-select-rails's People

Contributors

arlyxiao avatar connorfinnerty avatar diazruy avatar emmeryn avatar itkin avatar johnmichaelbradley avatar matthias-g avatar mauriciopasquier avatar prosanelli avatar slashek avatar startouf avatar tmlee avatar vincenzodev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bootstrap-select-rails's Issues

Live Search not working

I've make the select options with select form helper, and using live search. but when i'm typing on the search input, it didn't work. it wont filter anything that i've typed.

= select 'user', 'year', options_for_select(((Date.today.year - 100)..Date.today.year), current_user.dob&.year), {}, class: 'form-control selectpicker', name: 'user[birthdate][year]', data: { 'live-search': true, 'show-subtext': true }

I'm using

Bootstrap-select v1.12.4

Can't install

Hi,

I followed your instructions and installed the gem. I also added the lines to the application.js but when I try to run my application it says that "bootstrap-select" can't be found.

Do you have any idea of what might be ?

version supporting bootstrap 4?

hello there. I am a bit confused. at the time I am writing this comment, version number on the gem mentions 1.12.4 but apparently bootstrap 4 is supported after version 1.13. can we get the 2 in line? currently the select show disabled after gem installation so presumably the updated version to support bootstrap 4 is not yet pushed. Please advise.

Do not work with Turbolinks 5 well

Problem

bootstrap-select depends on the load events of the window.

https://github.com/silviomoreto/bootstrap-select/blob/master/js/bootstrap-select.js#L1840

  $(window).on('load.bs.select.data-api', function () {
    $('.selectpicker').each(function () {
      var $selectpicker = $(this);
      Plugin.call($selectpicker, $selectpicker.data());
    })
  });

But the load events of the window is not fired in page transitions with Turbolinks 5.

Reference: snapappointments/bootstrap-select#1413

Resolve

We relay the 'turbolinks:load' events of the document to the load events of the window.

For example:

$(document).on('turbolinks:load', function() {
   $(window).trigger('load.bs.select.data-api');
});

Suggestion

I think it is a good idea to append above code into the vendor/assets/javascripts/bootstrap-select.js in this gem.
Because this gem is to use bootstrap-select with the Ruby on Rails.

Can't install

Hi,

I followed your instructions and installed the gem. I also added the lines to the application.js but when I try to run my application it says that "bootstrap-select" can't be found.

Do you have any idea of what might be ?

Update to 1.13.12

Would it be possible to update this to 1.13.12. The current newest version has a bug which makes it unusable in my case. I tried to do it myself but was not able to understand how to update everything properly.

Bug when using multiple + optgroup

When you use multiple + optgroup, there is an issue that prevent normal use.
This bug is fixed in the latest version of the lib.
Do you plan to update with 1.12.1 shortly ?
Thanks

Update to 1.12.4

Is it possible to upgrade this source JS to version 1.12.4 ? Thanks

Select fields don't render when changing page

I have a view file that has a successful implementation of a bootstrap-select-rails select field, however when I navigate to another page and then go back to original page the select fields are rendered as normal bootstrap select fields. If a refresh the page using the browsers refresh button the select fields also refresh and appear correctly as bootstrap-select-rails selects.

Any ideas how I can force the rendering of the select fields when changing pages?

Add to readme.

Please add a step in the readme to include *= require bootstrap-select in application.css.scss

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.