Giter VIP home page Giter VIP logo

react-combo-select's People

Contributors

arcagully avatar bojant987 avatar darktasevski avatar markokostovski avatar milosrasic avatar nikolaravic avatar rvukovic-gogo avatar user928 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-combo-select's Issues

Value of the select element is incorrect

I use the react-combo-select component without setting the text prop (because I want the component to display 'select' and not a predefined option). It has say 3 options ('a','b', 'c') After I choose the option 'c' in the drop down list, the property 'value' of the select html element in the DOM does not have the expected value. Instead it always has the value of the first option (ie 'a' here) in the drop down list. The component displays the value 'c'.
This issue occurs only the first time I use the component. When I repeat the procedure above with another option, the component behaves properly.

Clicking on icon closes dropdown

Steps to reproduce:

Use the multi-select ComboSelect and pass several options to it. If you click on the option name, the option will be selected and dropdown stays open, so you can select something else. But if you click on the icon on the left, the option will be selected but the ComboSelect will close itself.

Probably issue with the event propagation with SVGs.

Dropdown closing when icon is clicked

Steps to reproduce:

Create multi-select ComboSelect, and then when you provide options, if you click on the icon instead of option name, the item will be selected but the dropdown menu will close itself.
Probably issue with event propagation from SVG.

how can we give initial values

thanks for your efforts, and i need to select some values in initial time of rendering how can i give that values? value={standardArray[2]} is not working

Drop down option not updating correctly

Hi Team,

We are facing one issue with dependent drop downs.
Please see below scenario.

Scenario:

Filter 1: Airline Filter 2: Technology
option1: AAL option1: ATG, 2KU
option2: ACA option2: 2KU, ATG4

We have 5 dependent dropdown (filters) like Airline, Fleet type, Technology and some other filters.

Let say when we select one option in airline filter (say 'AAL') and it will populate all the available options like ('ATG', '2KU') for the technology filter based on the selected airline and when we select any of the technology option say 2KU and again change the Airline filter to ACA option then the technology filter options are not updating with available technology options for ACA airline (say 2KU, ATG4).
And it is happening with all other filters.

We have debugged the root cause of that issue and below code is stopping the re rendering of the drop downs with updated options.

if (newProps.value !== this.state.value) {

If we remove this line of code it is working fine.

So, Please look in to this issue.

Click on icon closes ComboSelect dropdown

Steps to reproduce:

Use the multi-select ComboSelect and pass several options to it. If you click on the option name, the option will be selected and dropdown stays open, so you can select something else. But if you click on the icon on the left, the option will be selected but the ComboSelect will close itself.

Probably issue with the event propagation with SVGs.

Click on icon closes ComboSelect dropdown

Steps to reproduce:

Use the multi-select ComboSelect and pass several options to it. If you click on the option name, the option will be selected and dropdown stays open, so you can select something else. But if you click on the icon on the left, the option will be selected but the ComboSelect will close itself.

Probably issue with the event propagation with SVGs.

text prop chnage problem

Text prop change is not reflected by the component. When value prop is either falsy or not one of available options, displayed text will remain the initial value of text prop even if text prop has changed.

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.