diff options
author | Hayleigh Thompson <me@hayleigh.dev> | 2024-03-16 18:28:43 +0000 |
---|---|---|
committer | Hayleigh Thompson <me@hayleigh.dev> | 2024-03-16 22:27:06 +0000 |
commit | e86fb67f8fc936f389740730a25581f0628ff779 (patch) | |
tree | 722f27ec30f45645a44edba3e20aa9ae5ea391ff | |
parent | e4a5c6c4cd232e0a3c106f42def784eacccd3908 (diff) | |
download | lustre-e86fb67f8fc936f389740730a25581f0628ff779.tar.gz lustre-e86fb67f8fc936f389740730a25581f0628ff779.zip |
:bug: Fixed a bug where you couldn't provide text content to a textarea.
-rw-r--r-- | src/lustre/element/html.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lustre/element/html.gleam b/src/lustre/element/html.gleam index 9665dcb..588642d 100644 --- a/src/lustre/element/html.gleam +++ b/src/lustre/element/html.gleam @@ -850,8 +850,8 @@ pub fn select( } /// -pub fn textarea(attrs: List(Attribute(msg))) -> Element(msg) { - element.element("textarea", attrs, []) +pub fn textarea(attrs: List(Attribute(msg)), content: String) -> Element(msg) { + element.element("textarea", attrs, [element.text(content)]) } // HTML ELEMENTS: INTERACTIVE ELEMENTS ----------------------------------------- |