Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-textarea

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-textarea - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

2

es/ResizableTextArea.d.ts
import * as React from 'react';
import { TextAreaProps } from '.';
import type { TextAreaProps } from '.';
declare enum RESIZE_STATUS {

@@ -4,0 +4,0 @@ NONE = 0,

@@ -12,3 +12,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import classNames from 'classnames';
import calculateNodeHeight from './calculateNodeHeight'; // eslint-disable-next-line @typescript-eslint/naming-convention
import calculateNodeHeight from './calculateNodeHeight';
import shallowEqual from 'shallowequal'; // eslint-disable-next-line @typescript-eslint/naming-convention

@@ -144,4 +145,4 @@ var RESIZE_STATUS;

value: function componentDidUpdate(prevProps) {
// Re-render with the new content then recalculate the height as required.
if (prevProps.value !== this.props.value) {
// Re-render with the new content or new autoSize property then recalculate the height as required.
if (prevProps.value !== this.props.value || !shallowEqual(prevProps.autoSize, this.props.autoSize)) {
this.resizeTextarea();

@@ -148,0 +149,0 @@ }

import * as React from 'react';
import { TextAreaProps } from '.';
import type { TextAreaProps } from '.';
declare enum RESIZE_STATUS {

@@ -4,0 +4,0 @@ NONE = 0,

@@ -36,2 +36,4 @@ "use strict";

var _shallowequal = _interopRequireDefault(require("shallowequal"));
// eslint-disable-next-line @typescript-eslint/naming-convention

@@ -165,4 +167,4 @@ var RESIZE_STATUS;

value: function componentDidUpdate(prevProps) {
// Re-render with the new content then recalculate the height as required.
if (prevProps.value !== this.props.value) {
// Re-render with the new content or new autoSize property then recalculate the height as required.
if (prevProps.value !== this.props.value || !(0, _shallowequal.default)(prevProps.autoSize, this.props.autoSize)) {
this.resizeTextarea();

@@ -169,0 +171,0 @@ }

{
"name": "rc-textarea",
"version": "0.3.6",
"version": "0.3.7",
"description": "Pretty Textarea react component used in used in ant.design",

@@ -48,3 +48,4 @@ "keywords": [

"rc-resize-observer": "^1.0.0",
"rc-util": "^5.7.0"
"rc-util": "^5.7.0",
"shallowequal": "^1.1.0"
},

@@ -56,2 +57,3 @@ "devDependencies": {

"@types/react-dom": "^16.9.0",
"@types/shallowequal": "^1.1.1",
"@umijs/fabric": "^2.0.8",

@@ -58,0 +60,0 @@ "coveralls": "^3.0.6",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc