Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Alexander Valchev 424b45838e feat(dropdownlist): Implement controlled input behavior
As per #1 discussion the component will call its `onChange` callback
every time the user selects a new value (including during navigation).

The following changes were made:

- stateless/DropDownList: onSelect was replaced by onNavigate that fires
while the user searches or navigates through the items with the keyboard

- DropDownList: remove index property. High order component
should operate with the `value`

- DropDownList: remove previous/selected flags as they are no
longer needed

- DropDownList: onSelect was replaced by onNavigate. OnNavigate calls
the onChange callback every time. OnChange does the same but also closes
the list

- DropDownList: onChange callback is called every time the value
changes, event during navigation
2016-05-17 15:49:50 +03:00
Alexander Valchev 66cca2407a docs: add dropdownlist basic usage example 2016-05-10 16:50:58 +03:00
Alexander Valchev 91483e9e91 fix(dropdownlist): component's event handling
- onClose and onOpen callbacks of the stateless component are merged into
one onToggle that receives true/false argument which indicates popup
visibility state.

- stateless component call onChange when it is blurred. The parent
component which holds the state closes it through the props.

- when popup is opened the stateless component adds mousedown event listener to
the documentElement in order to detect clicks outside of the component
area. If such click is detected the widget fires its change event, the
parent stateful component closes it.

- the aforementioned event listener is removed when the popup closes or
when the component is about to unmount
2016-05-09 13:24:43 +03:00
Alexander Valchev 23761014cd docs(examples): update code samples and example pages 2016-05-02 20:27:46 +03:00
Alexander Valchev 70f6cd7192 fix(dropdownlist): change and select events 2016-04-27 15:22:19 +03:00
Alexander Popov ac9e829989 refactor: Separate stateless components 2016-04-19 18:51:20 +03:00
Alexander Valchev 94682a1722 fix(dropdownlist): defaultItem cannot be visually selected in the list 2016-04-14 17:02:17 +03:00
Alexander Valchev 7aaa2f12ec chore(examples): update test page 2016-04-08 15:39:49 +03:00
Alexander Valchev 7ba297154c chore(demos): update sample page 2016-04-07 18:55:16 +03:00
Alexander Valchev 3561bae5aa chore(demo): update demo page 2016-04-01 18:02:18 +03:00
Alexander Valchev aa868f3242 feat(dropdownlist): divide the component in two - stateless DropDownList and stateful DropDownList 2016-03-30 16:38:46 +03:00
Alexander Valchev 1982f3988a feat(dropdownlist): add change event 2016-03-28 16:04:14 +03:00
Alexander Valchev 1bf68c13e7 chore(examples): update test page 2016-03-25 19:51:25 +02:00
Alexander Popov 3700b3c7e0 refactor(ListContainer): Add visible property and inherit height from parent 2016-03-25 17:05:04 +02:00
Alexander Valchev 082d19e80f chore(examples): update AutoComplete and DropDownList examples 2016-03-23 19:46:53 +02:00
Alexander Valchev 6d16149db3 feat(dropdownlist): initial implementation of the type to search DropDownList feature
currently search is not working together with defaultItem
2016-03-17 19:41:00 +02:00
Alexander Valchev a8b60f978c perf(dropdownlist): update file and folder structure 2016-03-16 18:18:46 +02:00
Alexander Valchev 05f78d5376 chore(dropdownlist): add example 2016-03-15 21:22:35 +02:00