[Vuejs]-How to capture selectionStart and selectionEnd in Safari for ios?

0πŸ‘

βœ…

I found that adding the event β€œtouchend” worked. The working version:

<b-form-textarea
    v-show="!highlight || editing"
    v-model="highlightableText"
    @select.native="selectText"
    @touchend.native="selectText"
    :readonly="true"
    :no-resize="true"
    rows="10"
    ref="highlightable_textarea"
    class="ubcgs-highlightable-text"
>
</b-form-textarea>

Leave a comment