fast icon indicating copy to clipboard operation
fast copied to clipboard

fix: textarea missing attributes

Open olaf-k opened this issue 10 months ago • 0 comments

🐛 Bug Report

The <fast-text-area> lacks some attributes present on the native component.

💻 Repro or Code Sample

Missing attributes (based on MDN): autocapitalize (nonstandard), dirname, autocomplete (nonstandard), autocorrect (nonstandard) and wrap.

🤔 Expected Behavior

  • autocapitalize while nonstandard, might be useful and should be set on the underlying textarea in the template.
  • dirname doesn't work, but is quite a niche attribute and has an unusual behavior that might be tricky to emulate.
  • autocomplete is nonstandard, doesn't work in any browser AFAIK and can be safely ignored.
  • autocorrect while nonstandard, might be useful but is not yet defined (PR stuck here) and can continue to be ignored atm.
  • wrap should work when set on the underlying textarea in the template but currently doesn't? image

💁 Possible Solution

autocomplete is useless and autocapitalize is just about updating the component's template, so those are easy ones. It'd be nice to get wrap to work, maybe autocorrect too and dirname if the implementation is not too complex.

olaf-k avatar Apr 18 '24 10:04 olaf-k