Merge pull request #5058 from cmgustavo/bug/textarea-transition
Fix shaking when transition to feedback
This commit is contained in:
commit
7a597bf8e2
3 changed files with 12 additions and 4 deletions
|
|
@ -80,4 +80,8 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
|
|||
}
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.afterEnter", function() {
|
||||
$scope.showForm = true;
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@
|
|||
}
|
||||
.user-feedback {
|
||||
border-top: 1px solid $subtle-gray;
|
||||
padding: 20px;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.send-feedback-star {
|
||||
height: 1rem;
|
||||
|
|
|
|||
|
|
@ -31,9 +31,11 @@
|
|||
<div class="comment">
|
||||
<span translate>{{comment}}</span>
|
||||
</div>
|
||||
<textarea class="user-feedback" ng-model="feedback.value" rows="5" placeholder="Your ideas, feedback, or comments" autofocus></textarea>
|
||||
<button ng-disabled="!feedback.value" type="submit" class="button button-standard button-primary" ng-click="sendFeedback(feedback.value, false)" translate>
|
||||
Send
|
||||
</button>
|
||||
<div ng-if="showForm">
|
||||
<textarea class="user-feedback" ng-model="feedback.value" rows="5" placeholder="Your ideas, feedback, or comments" autofocus></textarea>
|
||||
<button ng-disabled="!feedback.value" type="submit" class="button button-standard button-primary" ng-click="sendFeedback(feedback.value, false)" translate>
|
||||
Send
|
||||
</button>
|
||||
</div>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue