Git Product home page Git Product logo

react-select-box's Introduction

React Select Box

Build Status

An accessible select box component for React.

Demo

http://instructure-react.github.io/react-select-box/

Installation

$ npm install react-select-box --save

Development

$ git clone [email protected]:instructure/react-select-box.git
$ npm install

Run the tests

$ npm test

Start the dev server

$ PORT=4000 npm start

Defaults to port 1337 if no port env variable is set.

react-select-box's People

Contributors

aaronshaf avatar brentropy avatar evizitei avatar javawizard avatar rovolution avatar timse 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

react-select-box's Issues

Multiselect dropdown has flikr while toggling

multi select dropdown has flikr when you try to
open a dropdown,
change the selection,
close it using toggle button

on first time it opens and closes it again. on the second instance it closes. this is due to on Blur event .

Accessibility - not working with ChromeVox

I tested the demo at http://instructure-react.github.io/react-select-box/ with ChromeVox and noted several problems:

  1. When selected via ChromeVox+Up/Down arrow, activating the dropdown via Enter or Space does not work.
  2. When selected via Tab both Enter and Tab activate the dropdown, but none of the options are read out. (not even the selected option)
  3. Changing the selection via arrow keys (without activating the dropdown) does work, but only when the box is selected via ChromeVox+Up/Down arrow, and in that case the box also hijacks other keybindings. (Eg: Ctrl+Shift+PgUp/Down)

Uncaught TypeError: this.refs.menu.getDOMNode is not a function

showing a error like " Uncaught TypeError: this.refs.menu.getDOMNode is not a function " when click on select box area .
i m using react ~15.3.1. it start working properly when i replace the code "this.refs.menu.getDOMNode().focus()" with " this.refs.menu.focus() " at line no 144 in the file select-box.js .

usage to provide options in different way

How can we provide options in simple way like

<SelectBox options= {[{color:'red'},{color:'green'},{color:'blue'}]} value = 'red'/>

Example shows a very unusual way .. SelectBox({params ....},option(),option()...)

Please help

Accessibility - Keyboard support

Focusing the select box and typing text does not work.

It should select the option that is being typed in (or at least the first matching option), but instead does nothing.

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.