Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49251

How to activate the any event when press the same option into ion-select

$
0
0

@cristsaavedra wrote:

Greetings everyone,

I have the following dilemma,
I currently have a selector that dynamically charged the options, once I select an option this activates the event (ionChange) which is correct, but what happens if the user would like to select the same option again by clicking on it, the event (ionChange) is not activated.
Is there any way to add some event (click) to an ion-select-option. I know it can’t be done directly according to the selector’s documentation but some other way to do it?

I put this little code below:

    <ion-item>
          <ion-label>Repetición:</ion-label>
          <ion-select class="selectorRepeticion" interface="popover" [(ngModel)]="valorRepeticion" 
           (click)="TipoRecurrencia($event, valorRepeticion)" name="dttRepeticiones" 
           formControlName="dttRepeticiones">
               <ion-select-option *ngFor="let item of repeticion" value="{{item.valor}}">{{item.descripcion}}
               </ion-select-option>
          </ion-select>
    </ion-item>

Thanks for your time reading this post and have a happy holiday

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49251

Trending Articles