Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/components/form-textarea/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ disabled in auto-height mode.
<!-- b-form-textarea-auto-height.vue -->
```


#### Auto height implementation note

Auto-height works by computing the resulting height via CSS queries, hence the input has to be in
document (DOM) and visible (not hidden via `display: none`). Initial height is computed on mount. If
the `b-form-text-area` is visually hidden on mount, the auto height cannot be computed.

In situations where the text area may initially be hidden visually (i.e. in non-lazy `b-tab` components
or non-lazy static `b-modal`), you may want to use `v-if` to delay mouting (lazy mount), or delay setting
the value of `b-form-textarea` until it's visually hidden parent is shown.

## Contextual states

Bootstrap includes validation styles for `valid` and `invalid` states on most form controls.
Expand Down