Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Updating the react select #1

Merged
merged 364 commits into from
Dec 10, 2015
Merged

Updating the react select #1

merged 364 commits into from
Dec 10, 2015

Conversation

vickyonit
Copy link
Owner

No description provided.

JedWatson and others added 30 commits October 20, 2015 15:27
Update README - fix typo and improve prop list
Accept promises in `asyncOptions` alongside callbacks
Function doesn’t need to be created on every render
Docs update for `asyncOptions` plus "nicety"
IE-fix: don't blur if document.activeElement is menuDOM
Fix math operations to use less --strict-math=on
Convert LESS to SCSS using the less2sass gem. Fix references to some
mixins in the individual scss files, and allow the importing of the
variables separately from the components so an end user can override the
variables before use.
Convert LESS to SCSS and re-organise
JedWatson and others added 28 commits November 23, 2015 09:14
This essentially reverts the change made here
#595 By applying a tabIndex on a
div element allows it to be focused. This was the reason the div was changed to
an input, by putting it back to a div mobile devices display consistent behaviour
when the select box recieves focus. IOS would display a chrome at the bottom
of the page where as chrome wouldn't.
If a select box was activated near the bottom of the viewport, the
viewport will now shift the minimum amount to display the full contents
of the menu.
+ the first few tests for Select.Async, using the shallow renderer
+ removed redundant asyncOptions tests from Select-test
+ Changes Select.Async thenPromise to return the resulting promise if handled with 
promises - no change to usage, but makes testing easier as it is possible to just wait
for the returned promise from thenPromise to complete before asserting the changes.
+ Added dev dependency to unexpected-react, to ease testing with the shallow renderer
Documented in the test case
Changed the cache checking to start with the full search string, and then decrease 
the length.
The DOM is still needed for the other tests, and `npm test` may run the async tests
first.  This means React is already required, and has already decided that there is no
DOM, hence `TestUtils.renderIntoDocument` won't work. Adding the DOM emulation
to Async-test fixes this problem.
Treats as if the options list was empty
as well as adding the feature to the README
- From `dist/default.css` to `dist/react-select.min.css`
Fixing a problem where the border isn't showing when the element is inside a table.
Was referencing default.css which doesn't exist
…ct nodes

Remove the warning without modifying the functionality by using

    React.PropTypes.oneOfType([
         React.PropTypes.string,
        React.PropTypes.node
    ]) 

instead of 

    React.PropTypes.string,
Less strict PropTypes for string placeholders to optionally allow React nodes
Fix a problem with border inside table
Feature to scroll the viewport to display the menu
vickyonit added a commit that referenced this pull request Dec 10, 2015
Updating the react select
@vickyonit vickyonit merged commit 3d96cf3 into vickyonit:master Dec 10, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.