FIX: only delete the word/phrase when the 'x' icon is clicked (PR #13547)

GitHub

    deleteWord() {

How about the above? record seems like a very generic term to use.

I’m curious, what was the previous behavior when the ‘x’ icon has been clicked on?

Can we use the @action decorator here?

It seems fine to me. You can ignore the comments if you want.

Is there a reason why you preferred span role="button" instead of just button? I’m not sure if there is any semantic or styling difference.

Yeah, the button element breaks the styling.

Good suggestion, done! :+1:t3:

I’m curious, what was the previous behavior when the ‘x’ icon has been clicked on?

Currently the click area for the “delete action” is the full element, not just the ‘x’ icon.

Thanks for the review @tgxworld and @nbianca! :+1: