{"id":23638011,"url":"https://github.com/fudanfuhua/react-focus-element","last_synced_at":"2026-04-29T20:04:20.150Z","repository":{"id":90606922,"uuid":"103760892","full_name":"fudanfuhua/react-focus-element","owner":"fudanfuhua","description":"react working in contenteditable element for iphone,chrome,safari(webkit kernel browser) to fix focus bug","archived":false,"fork":false,"pushed_at":"2017-10-12T15:03:43.000Z","size":42,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-26T02:44:12.445Z","etag":null,"topics":["contenteditable","focus","react"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fudanfuhua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-16T15:04:03.000Z","updated_at":"2021-04-26T14:22:08.000Z","dependencies_parsed_at":"2023-03-08T23:15:28.070Z","dependency_job_id":null,"html_url":"https://github.com/fudanfuhua/react-focus-element","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"b0611f006354e3d4f5a70a6f86991414e7e3ee02"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Freact-focus-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Freact-focus-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Freact-focus-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Freact-focus-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fudanfuhua","download_url":"https://codeload.github.com/fudanfuhua/react-focus-element/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239571540,"owners_count":19661164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contenteditable","focus","react"],"created_at":"2024-12-28T07:21:35.330Z","updated_at":"2025-11-09T08:30:40.120Z","avatar_url":"https://github.com/fudanfuhua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-focus-element\n\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Travis CI build status](https://img.shields.io/travis/danawoodman/react-fontawesome.svg)](https://travis-ci.org/danawoodman/react-fontawesome)\n[![Dependency Status](https://img.shields.io/david/danawoodman/react-fontawesome.svg)](https://david-dm.org/danawoodman/react-fontawesome)\n[![View on npm](https://img.shields.io/npm/dm/react-fontawesome.svg)](https://www.npmjs.com/package/react-fontawesome)\n[![View on npm](https://img.shields.io/npm/v/react-fontawesome.svg)](https://www.npmjs.com/package/react-fontawesome)\n\n\u003e A React component working use \"contenteditable element\" to fix focus bug on iphone, mac, and chrome(webkit kernel browser).\n\n\n## Install\n\n```\nnpm install --save react-focus-element\n```\n\n*Note: This component can work on most platform and most browser*\n\n## Usage\n\n```js\nvar React = require('react');\nvar FocusElement = require('react-focus-element');\n\nReact.render(\u003cFocusElement onInput={(e) =\u003e {}} /\u003e, document.body);\n```\n\n## Examples\n\n```js\nvar React = require('react');\nvar FocusElement = require('react-focus-element');\n\nvar MyComponent = React.createClass({\n  render: function () {\n    return (\n        \u003cFocusElement\n          id=\"publish-message__title\"\n          className={className}\n          onInput={(e) =\u003e {this.handleArticleContentChange('title', e.target)}}\n        /\u003e\n    );\n  }\n});\n```\n\n## Contributing\n\nPull requests welcome! \n\nRun the test suite with `npm test` and format your code with `npm run format`. Make sure tests are passing and that you write tests for new features and document changes to the API with updates to the JSDocs.\n\nBefore you submit your pull request, run `npm run dist` to build the project and commit the changes.\n\n\n## License\n\n[MIT](license) \u0026copy; [fudanfuhua][author]\n\n\n[author]: https://github.com/fudanfuhua\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffudanfuhua%2Freact-focus-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffudanfuhua%2Freact-focus-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffudanfuhua%2Freact-focus-element/lists"}