lwc icon indicating copy to clipboard operation
lwc copied to clipboard

Click events not firing

Open NichoBridge214 opened this issue 2 years ago • 4 comments

Description

I have a modal with a few lighting-input elements. I added onclick={method} to them and they are not firing. lighting-textarea element is firing and one of the inputs of type date is also firing but all others of type number and string are not firing also lightning combobox is not firing. I've also tried the onfocus and the onmouse etc. no events firing.

Steps to Reproduce

<lightning-input type="number" ... onclick={handleClick}></lightning-input>

handleClick(event) {
  doSomething here;
}

Expected Results

should run method

Actual Results

its not running method

Browsers Affected

chrome

Version

  • LWC: apiversion 56 -59

Possible Solution check if click events are being suppressed maybe?

NichoBridge214 avatar Dec 19 '23 23:12 NichoBridge214

This is an issue with Lightning Base Components, not the LWC framework (this repo). To resolve your issue, I would recommend opening a Salesforce Stack Exchange question or a Salesforce case. Providing a reproducible test case would also help.

nolanlawson avatar Dec 20 '23 17:12 nolanlawson

@puenteNicholas21 In addition to what @nolanlawson mentioned above, you can use this playground to repro your issue.

jmsjtu avatar Dec 20 '23 17:12 jmsjtu

@puenteNicholas21 In addition to what @nolanlawson mentioned above, you can use this playground to repro your issue.

thanks i tried opening playground and it wasn't working but your link worked.

NichoBridge214 avatar Dec 20 '23 17:12 NichoBridge214

th Lightning Base Components, not the LWC framework (this re

great thanks i'll open it there

NichoBridge214 avatar Dec 20 '23 17:12 NichoBridge214