nav-frontend-skjema
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -96,3 +96,3 @@ "use strict"; | ||
var feilmeldingId = context.feilmeldingId || nav_frontend_js_utils_1.guid(); | ||
return React.createElement("div", { className: "skjemaelement textarea__container" }, label && React.createElement(_1.Label, { htmlFor: _this2.textareaId }, label), description && React.createElement("div", { className: "skjemaelement__description", id: _this2.descriptionId }, description), React.createElement("div", { className: "textarea--medMeta__wrapper" }, _this2.props.maxLength && React.createElement("span", { id: _this2.maxTegnId, className: "sr-only" }, "Tekstomr\xE5de med plass til ", _this2.props.maxLength, " tegn."), React.createElement(nav_frontend_js_utils_1.EventThrottler, { event: "resize", callback: _this2.updateHeight, delay: 100 }, React.createElement("textarea", Object.assign({ ref: function ref(textarea) { | ||
return React.createElement("div", { className: "skjemaelement textarea__container" }, label && React.createElement(_1.Label, { htmlFor: _this2.textareaId }, label), description && React.createElement("div", { className: "skjemaelement__description", id: _this2.descriptionId }, description), React.createElement("div", { className: "textarea--medMeta__wrapper" }, !!_this2.props.maxLength && React.createElement("span", { id: _this2.maxTegnId, className: "sr-only" }, "Tekstomr\xE5de med plass til ", _this2.props.maxLength, " tegn."), React.createElement(nav_frontend_js_utils_1.EventThrottler, { event: "resize", callback: _this2.updateHeight, delay: 100 }, React.createElement("textarea", Object.assign({ ref: function ref(textarea) { | ||
_this2.tekstomrade = textarea; | ||
@@ -99,0 +99,0 @@ if (textareaRef !== undefined) textareaRef(textarea); |
{ | ||
"name": "nav-frontend-skjema", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
360666