rc-textarea
Advanced tools
Comparing version 1.8.1 to 1.8.2
@@ -43,2 +43,6 @@ // Thanks to https://github.com/andreypopp/react-textarea-autosize/ | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
// fix: A form field element should have an id or name attribute | ||
// A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form. | ||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | ||
hiddenTextarea.setAttribute('name', 'hiddenTextarea'); | ||
document.body.appendChild(hiddenTextarea); | ||
@@ -45,0 +49,0 @@ } |
import * as React from 'react'; | ||
import type { ResizableTextAreaRef } from './interface'; | ||
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & { | ||
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & { | ||
value?: string | number | bigint | readonly string[]; | ||
@@ -29,3 +29,3 @@ prefixCls?: string; | ||
}; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<ResizableTextAreaRef>>; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>; | ||
export default ResizableTextArea; |
import React from 'react'; | ||
import type { TextAreaRef } from './interface'; | ||
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & { | ||
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & { | ||
value?: string | number | bigint | readonly string[]; | ||
@@ -29,3 +29,3 @@ prefixCls?: string; | ||
}; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<TextAreaRef>>; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<TextAreaRef>>; | ||
export default TextArea; |
@@ -50,2 +50,6 @@ "use strict"; | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
// fix: A form field element should have an id or name attribute | ||
// A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form. | ||
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea | ||
hiddenTextarea.setAttribute('name', 'hiddenTextarea'); | ||
document.body.appendChild(hiddenTextarea); | ||
@@ -52,0 +56,0 @@ } |
import * as React from 'react'; | ||
import type { ResizableTextAreaRef } from './interface'; | ||
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & { | ||
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & { | ||
value?: string | number | bigint | readonly string[]; | ||
@@ -29,3 +29,3 @@ prefixCls?: string; | ||
}; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<ResizableTextAreaRef>>; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>; | ||
export default ResizableTextArea; |
import React from 'react'; | ||
import type { TextAreaRef } from './interface'; | ||
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & { | ||
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & { | ||
value?: string | number | bigint | readonly string[]; | ||
@@ -29,3 +29,3 @@ prefixCls?: string; | ||
}; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<TextAreaRef>>; | ||
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<TextAreaRef>>; | ||
export default TextArea; |
{ | ||
"name": "rc-textarea", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"description": "Pretty Textarea react component used in used in ant.design", | ||
@@ -73,2 +73,3 @@ "keywords": [ | ||
"react-dom": "^18.0.0", | ||
"cheerio": "1.0.0-rc.12", | ||
"umi-test": "^1.9.7" | ||
@@ -75,0 +76,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63486
1275
22