【发布时间】:2020-03-18 04:32:06
【问题描述】:
我旁边有一个离子输入和按钮(就像在聊天应用程序中输入聊天一样)。当我按下按钮时,键盘会一直关闭,我需要将其打开,直到用户单击硬件后退按钮两次/单击其他焦点区域。
<ion-input id="inputID" (keyup.enter)="sendMessage()" type="text" [(ngModel)]="replyMessage"
(press)="onPastePress($event,message, showSelect)" placeholder="Type a message"></ion-input>
<button for="inputID" (click)="sendMessage()" [attr.disabled]="replyMessage==''?'':null" type="button">
<!-- <ion-icon></ion-icon> -->
<i class="material-icons" style="font-size: 14px;">
send
</i>
</button>
软件详情: 使用离子 - 3.20.1 安卓版 - @8+ iOS 版本 - @5+
【问题讨论】:
标签: ionic-framework ionic3 ionic-native