我有一個amp-lightbox和一個表單。AMP-html如何在用戶點擊輸入時防止燈箱關閉
<amp-lightbox id="search-word"
layout="nodisplay">
<div class="lightbox"
on="tap:search-word.close"
role="button"
tabindex="0">
<form id="search-word" role="search" action="https://localanagrammer.com/" target="_top">
<div class="input-group">
<input type="text" id="searchWord" class="form-control" placeholder="enter scrabble word" data-ng-model="keyword" autocomplete="off" autofocus>
<span class="input-group-btn">
<button class="btn btn-default" type="button" data-ng-click="doSearch(keyword)">
<span class="fa fa-search" aria-hidden="true"></span>
</button>
</span>
</div>
</form>
</div>
</amp-lightbox>
當我嘗試點擊文本輸入的收藏夾被關閉。
問題是:什麼是防止關閉的正確方法?從這個documentation基於
我知道原因。但我想找到一個解決方案,我想應該有可能阻止它。 –