Giter Site home page Giter Site logo

kylefarris / ampersand-multiselect-view Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 31.91 MB

A view module for intelligently rendering and validating multiple select box input. Works well with ampersand-form-view. Based off of ampersand-select-view.

License: MIT License

JavaScript 100.00%

ampersand-multiselect-view's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ampersand-multiselect-view's Issues

Unable to enumerate the options of a multiselect in Microsoft Edge

This isn't an ampersand bug, it's an Edge bug. And I think it was reported here: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9628212/

That glitch indicates that the state of options elements in a select object aren't updated immediately in Microsoft Edge. This behaviour is confirmed by Microsoft Edge team and, until they fix it, produces an error here:

206 this.getAllOptions().forEach(function(v,i) {
207 this.select.options[i].selected = false;
208 }.bind(this));

Line 207 appears to fail in Microsoft Edge. this.select.childNodes.length and this.select.options.length will be temporarily different while the options are enumerated and deselected by the loop above. Then subsequent code will proceed (and fail).

yieldModel vs. yieldModels

Please clarify in the documentation and in the code which option to use. Currently the code seems to be favouring yieldModels (lines 64, 154, 221), but there is an instance in the code which is using yieldModel (line 334).

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.