Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
react-textarea
Advanced tools
<textarea />
replacement
with autoGrow
and resize
support
Most often you only need the textarea value
on the onChange
handler. Just as often, you don't need change
event propagation.
autoGrow
is a very nice to have feature on a textarea. Coupled with maxHeight
and resize
onChange(value: String [, event ]): Function
- the onChange
handler will be called with the textarea value, not the event
object as first argument. The event
object is the second arg to the callback function.stopChangePropagation: Boolean
- defaults to true. By default, the propagation of the change event will be stopped. All other evens will work as usual. Set this prop to false
to allow change
event propagation.autoGrow: Boolean
- defaults to true.resize: Boolean|String
- defaults to true - making the textarea resizable in both directions. Pass false
or String
to change this behaviour.maxHeight: Number|String
- the max height the textarea can have.$ npm run dev
and navigate to localhost:9090
.
See react-field for <input />
replacement.
Thanks to @andreypopp and his initial implementation at https://github.com/andreypopp/react-textarea-autosize
FAQs
React Textarea
We found that react-textarea demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.