react-component / input Goto Github PK
View Code? Open in Web Editor NEWReact Input Component
License: MIT License
React Input Component
License: MIT License
When will publish this as Package :) ?
Hello, we discovered that clear button which appears when allowClear
property used is not accessible due to 2 reasons:
tabindex=-1
which makes it inaccessible through the keyboard using tab
/shift+tab
span
tag which prevent to click it via space
or shift
when it is on focusI opened PR to fix this and added tests to check behavior, could you check it please
在最初没有内容输入时,值为undefined,所以重置后也应该是undefined
复制文案是很常见和必须的能力。
After this change (most likely) #54, which came into effect with antd 5.12.3, onchange
event from the input always has selectionStart / selectionEnd properties set to 0 instead of the actual numbers
We have custom input processing (related to the currency formatting), which worked perfectly for the past 6 years until this change.
Would it be possible to have a look into this issue?
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 character count also. This would be especially useful for situations where a user is limited to a specific number of characters, such as in form inputs or text areas.
I am requesting that support for displaying the remaining character count be added to the rc-input package. This would be a valuable addition to the package.
Thank you for considering this feature request.
Recent change 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 not support selection.
const handleReset = (e: React.MouseEvent<HTMLElement, MouseEvent>) => {
setValue('');
focus();
if (inputRef.current) {
resolveOnChange(inputRef.current, e, onChange);
}
};
Empty string is diffrent between undefined when it's sent to server.
Line 144 in a53aa2c
Did you forget to add it? If it is, I can give a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.