salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.62k stars 394 forks source link

Click events not firing #3914

Open NichoBridge214 opened 9 months ago

NichoBridge214 commented 9 months ago

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

Possible Solution check if click events are being suppressed maybe?

nolanlawson commented 9 months ago

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.

jmsjtu commented 9 months ago

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

NichoBridge214 commented 9 months ago

@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 commented 9 months ago

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

great thanks i'll open it there