react-textarea-autosize
Advanced tools
Comparing version 8.3.2 to 8.3.3
# react-textarea-autosize | ||
## 8.3.3 | ||
### Patch Changes | ||
- [`0d7ac21`](https://github.com/Andarist/react-textarea-autosize/commit/0d7ac21f1dadf1fb9070aea5f76f20b7ce2f24bc) [#326](https://github.com/Andarist/react-textarea-autosize/pull/326) Thanks [@karlingen](https://github.com/karlingen)! - Account for `word-break` property when calculating the height. | ||
* [`6336448`](https://github.com/Andarist/react-textarea-autosize/commit/63364489ca172b800663b8086757d719d911a2f5) [#327](https://github.com/Andarist/react-textarea-autosize/pull/327) Thanks [@circlingthesun](https://github.com/circlingthesun)! - Fixed the `tabindex` attribute name that is set on the hidden textarea used for height calculations. | ||
## 8.3.2 | ||
@@ -4,0 +12,0 @@ |
@@ -1,2 +0,2 @@ | ||
declare const SIZING_STYLE: readonly ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width"]; | ||
declare const SIZING_STYLE: readonly ["borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "boxSizing", "fontFamily", "fontSize", "fontStyle", "fontWeight", "letterSpacing", "lineHeight", "paddingBottom", "paddingLeft", "paddingRight", "paddingTop", "tabSize", "textIndent", "textRendering", "textTransform", "width", "wordBreak"]; | ||
declare type SizingProps = Extract<typeof SIZING_STYLE[number], keyof CSSStyleDeclaration>; | ||
@@ -3,0 +3,0 @@ declare type SizingStyle = Pick<CSSStyleDeclaration, SizingProps>; |
@@ -62,3 +62,3 @@ 'use strict'; | ||
hiddenTextarea = document.createElement('textarea'); | ||
hiddenTextarea.setAttribute('tab-index', '-1'); | ||
hiddenTextarea.setAttribute('tabindex', '-1'); | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
@@ -113,3 +113,3 @@ forceHiddenStyles(hiddenTextarea); | ||
'tabSize', 'textIndent', // non-standard | ||
'textRendering', 'textTransform', 'width']; | ||
'textRendering', 'textTransform', 'width', 'wordBreak']; | ||
var isIE = !!document.documentElement.currentStyle ; | ||
@@ -116,0 +116,0 @@ |
@@ -53,3 +53,3 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
hiddenTextarea = document.createElement('textarea'); | ||
hiddenTextarea.setAttribute('tab-index', '-1'); | ||
hiddenTextarea.setAttribute('tabindex', '-1'); | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
@@ -104,3 +104,3 @@ forceHiddenStyles(hiddenTextarea); | ||
'tabSize', 'textIndent', // non-standard | ||
'textRendering', 'textTransform', 'width']; | ||
'textRendering', 'textTransform', 'width', 'wordBreak']; | ||
var isIE = !!document.documentElement.currentStyle ; | ||
@@ -107,0 +107,0 @@ |
@@ -62,3 +62,3 @@ 'use strict'; | ||
hiddenTextarea = document.createElement('textarea'); | ||
hiddenTextarea.setAttribute('tab-index', '-1'); | ||
hiddenTextarea.setAttribute('tabindex', '-1'); | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
@@ -113,3 +113,3 @@ forceHiddenStyles(hiddenTextarea); | ||
'tabSize', 'textIndent', // non-standard | ||
'textRendering', 'textTransform', 'width']; | ||
'textRendering', 'textTransform', 'width', 'wordBreak']; | ||
var isIE = typeof document !== 'undefined' ? !!document.documentElement.currentStyle : false; | ||
@@ -116,0 +116,0 @@ |
@@ -62,3 +62,3 @@ 'use strict'; | ||
hiddenTextarea = document.createElement('textarea'); | ||
hiddenTextarea.setAttribute('tab-index', '-1'); | ||
hiddenTextarea.setAttribute('tabindex', '-1'); | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
@@ -113,3 +113,3 @@ forceHiddenStyles(hiddenTextarea); | ||
'tabSize', 'textIndent', // non-standard | ||
'textRendering', 'textTransform', 'width']; | ||
'textRendering', 'textTransform', 'width', 'wordBreak']; | ||
var isIE = typeof document !== 'undefined' ? !!document.documentElement.currentStyle : false; | ||
@@ -116,0 +116,0 @@ |
@@ -53,3 +53,3 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
hiddenTextarea = document.createElement('textarea'); | ||
hiddenTextarea.setAttribute('tab-index', '-1'); | ||
hiddenTextarea.setAttribute('tabindex', '-1'); | ||
hiddenTextarea.setAttribute('aria-hidden', 'true'); | ||
@@ -104,3 +104,3 @@ forceHiddenStyles(hiddenTextarea); | ||
'tabSize', 'textIndent', // non-standard | ||
'textRendering', 'textTransform', 'width']; | ||
'textRendering', 'textTransform', 'width', 'wordBreak']; | ||
var isIE = typeof document !== 'undefined' ? !!document.documentElement.currentStyle : false; | ||
@@ -107,0 +107,0 @@ |
{ | ||
"name": "react-textarea-autosize", | ||
"description": "textarea component for React which grows with content", | ||
"version": "8.3.2", | ||
"version": "8.3.3", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "autosize", |
53317