Commit Graph

96 Commits (e6b410491a6bb3bd24c0c9c661d0ae573c9b3109)

Author SHA1 Message Date
Roman Rott f912729ef7
Added required to Dropdown 2016-10-11 23:19:03 +03:00
Javi Velasco 8cac34930f Merge branch 'laucheukhim-dev' into dev
* laucheukhim-dev:
  Add onClick propType
  Replace onMouseDown wth onClick in Dropdown
2016-09-03 12:35:53 +02:00
Javi Velasco 6ddaf9a216 Ajust pointer 2016-09-03 12:35:49 +02:00
Javi Velasco 25d7ad4127 Merge branch 'dev' of https://github.com/laucheukhim/react-toolbox into laucheukhim-dev
* 'dev' of https://github.com/laucheukhim/react-toolbox:
  Add onClick propType
  Replace onMouseDown wth onClick in Dropdown
2016-09-03 12:32:17 +02:00
Per Bergqwist def8643a0a Import React namespace, fix problem with @types 2016-09-02 09:18:33 +02:00
Per Bergqwist 34313b823e Fixed errors for Typescript 2.0.2 2016-08-31 08:41:16 +02:00
Antony Lau f7604477a0 Add onClick propType 2016-08-27 23:42:29 +08:00
Antony Lau 83011cb7bb Replace onMouseDown wth onClick in Dropdown 2016-08-27 09:19:51 +08:00
Per Bergqwist 213411ba55 Fixes for typescript definitions, typos etc. 2016-08-10 09:35:51 +02:00
Javi Velasco a825208e83 Remove some bind usage in render functions and undo passing down Dropdown theme to Input 2016-08-06 22:44:05 +02:00
Javi Velasco fd138f9716 Fixes #674 2016-08-06 20:04:16 +02:00
Javi Velasco b226fcd258 Merge with dev 2016-07-24 13:17:16 +02:00
Javi Velasco 3e29844e63 Update to react 15.2.0 2016-07-04 22:03:57 +02:00
ixrock febf8b5237 get rid of declaration duplicates in components/ 2016-06-26 15:02:54 +03:00
Javi Velasco bde7e4cb0e Merge pull request #588 from mgcrea/patch-dropdown
chore(dropdown): set value to empty string to prevent uncontrolled er…
2016-06-25 12:20:54 +02:00
Olivier Louvignes ad52adb82b chore(dropdown): set value to empty string to prevent uncontrolled errors 2016-06-23 19:23:42 +02:00
Olivier Louvignes ec94e5a97a feat(dropdown): add support for name prop 2016-06-09 19:21:00 +02:00
Robert Parker 68926f8289 Fix a few incorrect exports in typings and build with updated Babel 2016-06-07 15:41:51 -07:00
Robert Parker f8c1a3fd0d Update typings to external modules (no more 'declare module ...') to get the definitions working automatically with npm 2016-06-07 15:00:41 -07:00
Javi Velasco 419f16f63f Plain SASS imports 🎨 2016-06-04 22:06:59 +02:00
Javi Velasco 73c115fac7 Better PropType syntax and delete required className api 2016-06-03 23:44:33 +02:00
Javi Velasco 7a241e93ae Autoinject theme for dropdown 2016-05-29 19:37:40 +02:00
Javi Velasco 38e2690af9 Migrate Dropdown to themr 2016-05-22 21:28:48 +02:00
Javi Velasco 0cb8d8bdb2 Get rid of jsx extensions 🔮 2016-04-10 21:23:04 +02:00
Javi Velasco ee4cc5437d Fix #425 2016-04-10 19:15:29 +02:00
Keren Chandran cdd6ee5f05 Merge branch 'dev' of https://github.com/react-toolbox/react-toolbox into update-docs
# Conflicts:
#	components/autocomplete/readme.md
#	components/dropdown/readme.md
2016-04-06 20:50:12 -04:00
Javi Velasco 5db11d3a9e Proper property sorting 2016-04-05 21:53:13 +02:00
Tobias Bales 542b58ade6 Add allowBlank to Dropdown
Since @nickw was having issues with the dropdown not defaulting to the
first entry if the value was null (even though the options had a null value in it)
this seems like a good time to add an option to default to the first element of the supplied options
(the prop is called allowBlank) in case the value is not found in the options.

The handling of null/undefined values has been fixed too and if there actually is a value of null
in the options it is correctly selected now.
2016-04-05 21:53:13 +02:00
Emil Öberg 37f8f4c992 Added !default to all config values as per #424
This way, all config values can be overridden with custom style
2016-04-02 00:47:39 +02:00
Keren Chandran fe9312aad0 Fixed Dropdown readme example and updated properties. 2016-03-25 10:27:53 -04:00
Javi Velasco bdd37556c9 Merge pull request #398 from lucaas/add-default-to-sass-color-variables
Fix #397 Color sass variables missing !default not configurable
2016-03-24 18:03:34 +01:00
Tomasz Kasperek 9dcd1d6750 Introduce close() method 2016-03-23 12:35:24 +01:00
Lucas Correia acde309b3b Add default statements to color variables
This is necessary for them to be configurable via toolbox-loader
2016-03-22 14:25:26 +01:00
Tobias Bales c812d4c176 Correctly handle zero as dropdown value
This is only an issue if the dropdown item with the value 0
is not the first item still better to properly handle it I think.
2016-03-10 11:13:39 +01:00
Javi Velasco 993afbce39 Fix #356 2016-03-05 21:37:07 +01:00
Rodion c1f2b83865 Dropdown doesn't close on click outside fix
Hi there,

Dropdown component doesn't close on click outside in my app. 
I debugged a little bit problem and found that componentWillUpdate uses incorrect.
It accepts nextProps and nextState and not prevState and nextState
https://facebook.github.io/react/docs/component-specs.html#updating-componentwillupdate
2016-03-04 18:16:31 +01:00
Juan Peri 29edd204a5 dropdown accepts string or number as value 2016-02-15 18:18:16 +01:00
Cyril Sobierajewicz 68b23d2919 cleanup listeners on document before unmount 2016-02-11 17:06:37 +01:00
Javi Velasco d7e5aea79a Merge pull request #275 from epilgrim/feature/close_dropdown_on_click_outside_the_element
close dropdown when click event is triggered outside the component
2016-01-23 15:59:23 +01:00
Juan Peri 160fb47fb1 Removing event from dropdown when not active anymore 2016-01-23 09:42:56 +01:00
Juan Peri 21a68606b1 close dropdown when click event is triggered outside the component 2016-01-22 18:06:32 +01:00
Boris Mikhaylov 9ce68aeceb propagate events in Dropdown 2016-01-22 14:43:33 +01:00
Javi Velasco 6cc95c5bc1 Bugfix in dropdown errored styling 2015-12-20 18:50:25 +01:00
Javi Velasco b037994375 Fixes #157 2015-12-20 18:17:50 +01:00
Javi Velasco 802f50f4b3 Use full Toolbox input in autocomplete 2015-12-20 17:50:57 +01:00
Javi Velasco 2c7d308271 Use Input component in dropdowns and make it homogeneous 2015-12-20 17:01:02 +01:00
Javi Velasco 60f55ebfef Fixes #188 2015-12-19 22:07:49 +01:00
Javi Velasco 40888bbb1d Change webkit scrollbar removal for a mixin 2015-12-19 14:08:30 +01:00
Peter Fern 58e4e1e46c Replace `overflow-y: scroll` with `overflow-y: auto`
A number of components used `overflow-y`: scroll, which forces
scrollbars to be always visible. To work around this, `commons.scss` hid
webkit scrollbars globally. There are two problems with this: on
non-webkit browsers, scrollbars are visible even when they are
unnecessary; and scrollbars are hidden in webkit browsers, even on
elements where they may be desirable.

Instead, we use `overflow-y: auto`, and hide webkit scrollbars on
specific components when necessary.  Unfortunately, this requires using
element selectors, but this is the trade-off for better supporting
non-webkit browsers and allowing scrollbars on regular elements (like
body).

Fixes #218
2015-12-19 14:08:30 +01:00
Javi Velasco da0f1a631e Remove jsx extension from imports in components 2015-11-28 20:24:46 +01:00