-
Notifications
You must be signed in to change notification settings - Fork 3
Smart Textarea: Add new component #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| <span class="hidden-span"> | ||
| {{if (or this.inputValue this.isInputFocused) this.inputValue this.placeholder}} | ||
| </span> | ||
| <span class="hidden-span">{{this.hiddenSpanValue}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥷 Remove span strange escape, which lead to unconsistent behavior between classic & loading state
app/styles/atoms/smart-textarea.less
Outdated
| .oss-textarea-container; | ||
| flex: 1; | ||
| // max-width: fit-content; | ||
| // width: 100%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgotten comments
|
|
||
| hooks.beforeEach(function () { | ||
| this.value = 'Data'; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove the linebreak here
addon/components/o-s-s/text-area.ts
Outdated
| return this.args.rows || 2; | ||
| } | ||
|
|
||
| get resize(): 'vertical' | 'horizontal' | 'none' | undefined { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit but we might export the resize types from the parent component & import it in the extended component
|
|
||
| @action | ||
| onTextAreaChange(value: string): void { | ||
| console.log('Text area value changed:', value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgotten log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in dummy app :)
What does this PR do?
Related to: #DRA-3516
What are the observable changes?
Add new OSS::Smart::Textarea component :)
Enregistrement.de.l.ecran.2025-08-18.a.15.34.44.mov
Good PR checklist