Skip to content

Commit

Permalink
Merge pull request #1092 from KleeGroup/fix-autocomplete-legacy
Browse files Browse the repository at this point in the history
Fix autocomplete legacy
  • Loading branch information
pierr committed Apr 6, 2016
2 parents 57ce2e9 + 9138fc2 commit b1545ef
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "focus-components",
"version": "0.14.0-rc2",
"version": "0.14.0-rc3",
"description": "Focus component repository.",
"main": "index.js",
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/common/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
autocomplete: require('./autocomplete'),
block: require('./block'),
button: require('./button'),
empty: require('./empty'),
Expand Down
6 changes: 5 additions & 1 deletion src/common/mixin/built-in-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ module.exports = {
const fieldProps = this._buildFieldProps(name, options, this);
return this._renderField(fieldProps);
},
autocompleteFor(name, {codeResolver, searcher}, options = {}) {
autocompleteFor() {
throw new Error(`Form's autocompleteFor method is deprecated, in order to use the deprecated component, please use this.deprecatedAutocompleteFor.
You must migrate all the autocompleteFor to autocompleteSelectFor or autocompleteTextFor in order to follow the library evolutions.`);
},
deprecatedAutocompleteFor(name, {codeResolver, searcher}, options = {}) {
options = assign({}, options);
options.codeResolver = codeResolver;
options.searcher = searcher;
Expand Down

0 comments on commit b1545ef

Please sign in to comment.