Focus-components v0.6.2
·
2486 commits
to master
since this release
*** This release is mainly here to fix bugs. ***
There is no associated focusjs release.
How to install it npm install focusjs-components@0.6.2 --save && node scripts/install.js
Bug fixes
- Display the error when the field is required #425
- The HTML5 validation is now turned off with
novalidateattribute on forms #423 - The select now displays errors #428
New feature
autoCompleteForis available in forms , please see
const codeResolver = code => {
return new Promise(success => {
const candidate = _.find(autocompleteData, {code});
success(candidate ? candidate.value : 'Unresolved code');
});
};
const searcher = text => {
return new Promise(success => {
_.delay(() => {
const result = autocompleteData.filter(item => {
return text === '' || item.value.toLowerCase().indexOf(text.toLowerCase()) !== -1;
});
success(result);
}, 1);
});
}
{this.autocompleteFor('city', {codeResolver, searcher}, {selectionHandler(data) {alert(`Code : ${data.code}, value: ${data.value}`)}})}- Add warning in lists when the data is not an array #418
Next release
- React has a new Release candidate version,
v0.14, we already use it in thedevelopbranch, please read http://facebook.github.io/react/blog/2015/09/10/react-v0.14-rc1.html, it is already in production onFacebookwebsite.

- React is now splitted into two libs:
ReactandReactDOM - As the current warning says
getDOMNodeis deprecated, and you will have to renameReact.findDOMNodeinReactDOM.findDOMNode. - Read what
PropTypesare for your components https://facebook.github.io/react/docs/reusable-components.html - Next release note will be more functionnal, with more screenshots, sorry this release is more technnical as it is mainly bug fixes


