Code Monkey home page Code Monkey logo

bootstrap-fullscreen-select's People

Contributors

craftpip avatar kaz0636 avatar kristophone 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  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  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-fullscreen-select's Issues

Reinitialize throws error

I have added multiple mobile select items inside my Html with multiple div as page. On page load i'll get values from service and selected the corresponding options of select for both pages. On Div1 (page1) if i open that select and select extra one value and click save (not saving to server). After that i open Div2 (page2), if i go back to div1 i want the selected options similar to page load selected options. That extra option i selected is there, which should not be there.

will this be possible?

ios Device using Edge Browser - Bottom Accept / Close buttons not visible.

We have had a report that a user using the following iPhone 11, and in the iPhone uses Edge Browser.

They are unable to see the Accept / Close buttons in the bottom of the browser - i suspect and think we can fix this by adding some padding, but that will not be good and applied to all devices.

Is there a option / way to avoid having to add this for that particular user?

Do please ignore the crossed out proposed buttons on the right - you can see in the highlighted area in the bottom, that this is actually hiding the Accept / Close buttons that would normally appear there.

image

Thank you.

Auto submiting form

Hi,

I'm using your component inside a form, and clicking in the button that replaces the , makes the form submit. You could avoid this by adding type="button" to the button tag. In other way, it behaves like a type="submit" Thanks for this great component.

Options to have sub title

The user can add a subText to the option that will be viewed below the option text.

Attr used: data-subText="Sub text here!"

Multiple selection count issue

After selecting multiple options , the select box shows the length of total characters instead of selected element count
1 - two options slected

wrong count length of charactors

After testing the code I found that this issue can fix by changing the " _updateBtnCount " function. (Line no 185) as below.
b = this.$triggerElement.next().find('option:selected').text() || this.$e.val(); into
b = this.$e.val();

button tag issue

In minified version, type="button" is missing from the tag, so it is behaving like a submit button.

Dependent selects onClose fire multiple times

Hi I have came accross a bug, I have 4 selects one depends on the selected value of the previous one.
I have my own functions called on the onClose function.
2 things.

  1. The onClose function was getting called multiple times I notice it needed a unbind click in the _unbindEvents function.
    Add this line: this.$c.find('.mobileSelect-savebtn').unbind('click');

  2. The onClose should be only called when the save-button is pressed for this I added a default parameter on the hide function.

`hide: function (save = null) {

        /*
         * hide animation with onClose callback
         */
        this.$c.children('div').addClass('anim-' + this.animation);
        var that = this;
        this._updateBtnCount();
        setTimeout(function () {
            that.$c.hide();
            $('body').removeClass('mobileSelect-noscroll');
            /* MY CHANGE BEGIN*/
            if(save) {
                that.onClose.apply(that.$e);
            }
            /* MY CHANGE END */
        }, this.animationSpeed);
    },`

Then on line 232 change this that.hide(); to this that.hide(true);

option for images in option

An option to have a image for a option,
data-attr will be data-image="imagename",

The image will be visible in the dropdown.

Display only on mobile, use HTML inside option name

I'm going to implement some features from bootstrap select, including the idea of using a data-content for the option name instead of the actual option name if it's available, this way you can display an icon/image/swatch in the list.

Also was going to figure out an easy way to only make this work on mobile, for instance in my use case I want to use bootstrap-select for desktop users and this for mobile.

If there is interest in these 2 options I will do a pull request?

Select like native - without save and cancel button

Is it possible to use this select popup without having save and cancel button on the bottom of the popup. It should select the row selected and close the popup then itself instead of additional Save click.

Please confirm if it is already available or if there is any way to do that.

Change event

Hey mate, thanks sharing this plugin with the world. I've encountered a bug/limitation when trying to use this plugin in a recent project.

I was listening to change events on the select elements but noticed they weren't getting triggered. Was this intended? If not below is a quick fix.

See: Line 271

this.$e.val(selectedOptions).trigger('change');

Cant disable via JS

I am trying to disable via JS $('#select1').attr('disabled', true); but it is not working, is this function not allowed?

button text is updated with value instead of text

If I have a select like this:
` One Two ` the button element on the page is updated with the value, not the label. This is not normal, in standard the user chooses a label, not a value. For the user is not relevant to see the value, but the label.

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.