Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

`ion-textarea` does not auto-height prefilled content on screen load

$
0
0

When my component is in an edit state I need the screen to show the correct height of the control. It does not. It only snaps to the right height if you start editing the contents.

My ion control:

      <ion-textarea v-model="current_entry.happening"
                        label="What happened?"
                        type="text"
                        class="paper"
                        auto-grow="true"
                        spellcheck="true"
          />

The css class is:

.paper {
  font-size: 1.5em;
  font-family: RobotoLight;
}

On ionViewDidEnter() I set current_entry.happening to its database-stored value, but the screen is rendered with the control collapsed to its empty default height:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>