vue-at icon indicating copy to clipboard operation
vue-at copied to clipboard

Problem with mobile device on custom tags

Open MRCSDZ opened this issue 7 years ago • 5 comments

Hi, have a trouble with a custom tag. When I selected a option on my list always selected the first option no matters if choose another. But when I use the component without custom tag I can select any option on my list.

prueba

This problem only appear when I use custom tags.

How I could fix that problem?

Note: If I use a simple at component (no custom tag) works perfectly.

MRCSDZ avatar Sep 15 '18 02:09 MRCSDZ

@MRCSDZ vue-at binds @click on the <li> item, source: https://github.com/fritx/vue-at/blob/725d7a1470e9cc309ae2b7d04deddf8ccf9ceb05/src/AtTemplate.vue#L15-L25

Could you paste your code snippet here?

fritx avatar Sep 15 '18 04:09 fritx

@fritx sure thats my code

@MRCSDZ vue-at binds @click on the <li> item, source:

vue-at/src/AtTemplate.vue

Lines 15 to 25 in 725d7a1

Hi. thanks for the answer. That's the code from my component.

<at :members="members" name-key="name" >	
	<span slot="embeddedItem" slot-scope="s">
    	<span  style="color: #00b0ff"><b> {{ s.current.name }}</b></span>
  	</span>

    <template slot="item" slot-scope="s" >
      		<span>{{ s.item.username }} </span>
      		<span class="tag" v-text="s.item.name"></span>
    </template>
    <div class="bg-light" style="height: 100px" contenteditable>  </div>				
</at>

MRCSDZ avatar Sep 15 '18 04:09 MRCSDZ

Emm.. no idea for now... demo seems to work well: https://fritx.github.io/vue-at/#/en/customtemplates

But when I use the component without custom tag I can select any option on my list.

Did you mean when you say custom-tag or custom-list? It's "custom-tags" (embeddedItem), right?

fritx avatar Sep 15 '18 06:09 fritx

Emm.. no idea for now... demo seems to work well: https://fritx.github.io/vue-at/#/en/customtemplates

But when I use the component without custom tag I can select any option on my list.

Did you mean when you say custom-tag or custom-list? It's "custom-tags" (embeddedItem), right?

Hi @fritx , thats right. the problem is when y try to make something like #55 (https://github.com/fritx/vue-at/issues/55 ) in embeddedItem.

MRCSDZ avatar Sep 15 '18 12:09 MRCSDZ

Hi @fritx. Having the same issue. Is there any solution how to fix it?

polinadrykova avatar Aug 02 '21 00:08 polinadrykova