input icon indicating copy to clipboard operation
input copied to clipboard

React Input Component

Results 12 input issues
Sort by recently updated
recently updated
newest added

Recent change https://github.com/react-component/input/compare/v1.4.3...v1.4.4#diff-94b5cf5856a42bc2e70f9e2b690fda2b65151186e6b007466ff6c6744c40e2c8R30 `currentTarget.selectionStart = target.selectionStart; currentTarget.selectionEnd = target.selectionEnd;` breaks input type email functionality. With error: Failed to set the 'selectionStart' property on 'HTMLInputElement': The input element's type ('email') does...

Hello, we discovered that clear button which appears when `allowClear` property used is not accessible due to 2 reasons: - button wrapper uses `tabindex=-1` which makes it inaccessible through the...

### 🤔 这个变动的性质是? - [ ] 新特性提交 - [x] 日常 bug 修复 - [ ] 站点、文档改进 - [ ] 演示代码改进 - [ ] 组件样式/交互改进 - [ ] TypeScript 定义更新 -...

copy content is common in business. support copy content

复制文案是很常见和必须的能力。

![image](https://user-images.githubusercontent.com/52068614/167766367-ef8de3d8-7a31-4bb5-a643-c60960151773.png) 😊 长度被计算为了 1 ,应该是 2

Currently, the rc-input package only provides support for displaying the character count of the provided input. It would be helpful to have the ability to switch to display the remaining...

公司项目使用了 Antd,而 Antd 依赖了 `rc-input` 的代码。通过查看源码后发现 `onPressEnter` 使用了 [onkeydown](https://github.com/react-component/input/blob/master/src/Input.tsx#L86) 实现检查是否按下 Enter,但这种实现会导致在 Mac 系统上使用中文输入法的情况下,输入任意内容不选择任何联想项时按下 `Enter` 键,会触发对应逻辑,正常情况下应该不做处理?个人尝试后发现使用 `onkeypress` 是没有问题的。 这是我写的 [最小复现 Demo](https://dreamer-paul.github.io/Code-Snippets/2022-10-24%20Mac%20%E8%BE%93%E5%85%A5%E6%B3%95%E5%9B%9E%E8%BD%A6%E9%97%AE%E9%A2%98/),如果使用非 `onkeypress` 的方式捕获,则会触发此问题,Windows 貌似没有出现此问题。 [rc-input 的最小复现](https://codesandbox.io/s/nifty-nash-b2kxhn?file=/src/App.js:135-142) https://user-images.githubusercontent.com/25198337/197444497-1e93cdf7-37ed-4bdd-a8c8-1bd70fa5bf5c.mp4

在最初没有内容输入时,值为undefined,所以重置后也应该是undefined