Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

122
Vistas
click function doesn't work anymore after I change the html

I have a click function that opens a modal and the object's uuid, after I changed the tag where the function was in the html it stopped working, what can it be?

ps: I had to put the icon in the middle of the carousel-slider to make it appear on the screen

my function and my html:

openBannerDeleteModal(uuid ? : string): void {
  if (!uuid) return;
  const width = innerWidth <
    1024 ? '100%' : '40%';
  const dialogRef = t his.matDialog.open(BannerDeleteComponent, {
    height: '20%',
    width: width,
    data: {
      uuid: uuid,
    },
  });
  dialogRef.afterClosed().subscribe(async(result) => {
    if (result) this.banners = await this.BannerService.getBanner();
    window.location.reload();
  });
}

<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
  <span class="carousel-control-prev-icon" aria-hidden="true">
                    </span>
  <span class="sr-only">Previous</span>
</a>
<i (click)="openBannerDeleteModal(banner.uuid)" *ngIf="isAdminFlag==='true'" class="fas fa-trash-alt delete-modal" id="banner-delete" aria-hidden="true"></i>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
  <span class="carousel-control-next-icon" aria-hidden="true">
                    </span>
  <span class="sr-only">Next</span>
</a>
</div>
</div>

The previous version was:

<div class="carousel-inner">
  <div class="banner carousel-item {{ i === 0 ? 'active' : '' }} it-1" *ngFor="let banner of banners; let i = index">
    <div id="tilt" class=" tiltElement carousel-caption">

      <i (click)="openBannerDeleteModal(banner.uuid)" *ngIf="isAdminFlag==='true'" class="fas fa-trash-alt delete-modal" id="banner-delete" aria-hidden="true"></i>

      <div class="vertical-line"></div>
      <div>
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Most probably you are not able to click on the icon itself, you can see the icon but there might be a transparent element covering it, you can check if this is the case with with highlighter enter image description here

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda