Material19 MatButton has no 'ripple' property anymore

Discussão em 'Angular' iniciado por tomer.shatz, Março 7, 2025.

  1. tomer.shatz

    tomer.shatz Guest

    I have a Search MatInput field with a Search icon button on the right. If the user clicks the search is performed and I want the ripple effect to be shown. How can I get the ripple from the MatButton? The following code doesn't work anymore since Material19

    rippleLaunch(button: MatButton) {
    button.ripple.launch({centered: true})
    }


    I tried to programmatically click the Search button, but the ripple is not shown.

    Continue reading...

Compartilhe esta Página