Skip to content
Snippets Groups Projects
Commit ba300f4d authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix 'TypeError: _this2._input.focus is not a function'

parent 8b8c7e57
Branches
Tags
No related merge requests found
......@@ -3,6 +3,10 @@ import PropTypes from "prop-types";
import _ from "underscore";
/**
* A small wrapper around <input>, primarily should be used for the
* `onBlurChange` feature, otherwise you should use <input> directly
*/
export default class Input extends Component {
constructor(props, context) {
super(props, context);
......
......@@ -2,7 +2,6 @@ import React, { Component } from "react";
import PropTypes from "prop-types";
import Icon from "metabase/components/Icon.jsx";
import Input from "metabase/components/Input.jsx";
import { t } from "c-3po";
export default class ListSearchField extends Component {
......@@ -44,7 +43,7 @@ export default class ListSearchField extends Component {
<span className="px1">
<Icon name="search" size={16} />
</span>
<Input
<input
className={inputClassName}
type="text"
placeholder={placeholder}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment