mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
cb31d4cb6d
Summary: There is a little bit of dogscience here, but I believe JSX is wanting `tabIndex` instead of `tabindex`. We have `tabindex` as an attribute in our Algolia search; changing it to `tabIndex` removes the warning. **Before** <img width="1262" alt="screenshot 2016-07-12 11 05 47" src="https://cloud.githubusercontent.com/assets/3757713/16772199/4bff2d0e-4821-11e6-822f-a729656fec53.png"> **After** <img width="1254" alt="screenshot 2016-07-12 11 09 47" src="https://cloud.githubusercontent.com/assets/3757713/16772201/4e09eb34-4821-11e6-9c5e-5e3d7e21c4bd.png"> Closes https://github.com/facebook/react-native/pull/8721 Differential Revision: D3550398 fbshipit-source-id: b7821d1940cd4c7880ee6fb907bcb16b44087750
23 lines
635 B
JavaScript
23 lines
635 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule AlgoliaDocSearch
|
|
*/
|
|
|
|
var AlgoliaDocSearch = React.createClass({
|
|
render: function() {
|
|
return (
|
|
<div className="algolia-search-wrapper">
|
|
<input id="algolia-doc-search" tabIndex="0" type="text" placeholder="Search docs..." />
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = AlgoliaDocSearch;
|