Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

"q" in filters doesn't work with React-admin 3.x.x #13

Open
zifnab87 opened this issue Jan 14, 2020 · 0 comments
Open

"q" in filters doesn't work with React-admin 3.x.x #13

zifnab87 opened this issue Jan 14, 2020 · 0 comments

Comments

@zifnab87
Copy link
Collaborator

zifnab87 commented Jan 14, 2020

it seems that the component being returned is exactly what can be added in filters to work:
<TextInput label="Search in text fields" source="q" alwaysOn />

as a workaround

add a field called

fullTextSearch: {
           input: ( <TextInput label="Search in text fields" source="q" alwaysOn />)
       }

and then in

filters: ["fullTextSearch","q"]

Could not find "store" in either the context or props of "Connect(DefaultValue)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(DefaultValue)".
▶ 20 stack frames were collapsed.
Module../src/index.js
src/index.js:10
   7 | 
   8 | DateFnsUtils.prototype.getStartOfMonth = DateFnsUtils.prototype.startOfMonth;
   9 | 
> 10 | ReactDOM.render(<App />, document.getElementById('root'));
  11 | registerServiceWorker();
  12 | 
View compiled
__webpack_require__
/var/www/html/****/webpack/bootstrap:785
  782 | };
  783 | 
  784 | // Execute the module function
> 785 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  786 | 
  787 | // Flag the module as loaded
  788 | module.l = true;
View compiled
fn
/var/www/html/****/webpack/bootstrap:150
  147 | 		);
  148 | 		hotCurrentParents = [];
  149 | 	}
> 150 | 	return __webpack_require__(request);
      | ^  151 | };
  152 | var ObjectFactory = function ObjectFactory(name) {
  153 | 	return {
View compiled
1
http://localhost:3000/static/js/main.chunk.js:2900:18
__webpack_require__
/var/www/html/***/webpack/bootstrap:785
  782 | };
  783 | 
  784 | // Execute the module function
> 785 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
      | ^  786 | 
  787 | // Flag the module as loaded
  788 | module.l = true;
View compiled
checkDeferredModules
/var/www/html/**/webpack/bootstrap:45
  42 | 	}
  43 | 	if(fulfilled) {
  44 | 		deferredModules.splice(i--, 1);
> 45 | 		result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
     | ^  46 | 	}
  47 | }
  48 | 
View compiled
Array.webpackJsonpCallback [as push]
/var/www/html/***/webpack/bootstrap:32
  29 | 	deferredModules.push.apply(deferredModules, executeModules || []);
  30 | 
  31 | 	// run deferred modules when all chunks ready
> 32 | 	return checkDeferredModules();
     | ^  33 | };
  34 | function checkDeferredModules() {
  35 | 	var result;
View compiled
(anonymous function)
http://localhost:3000/static/js/main.chunk.js:1:91
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant