material-web icon indicating copy to clipboard operation
material-web copied to clipboard

md-tabs fires change event when programmatically setting activeTab(Index)

Open austinw-fineart opened this issue 2 years ago • 1 comments

What is affected?

Component

Description

Just trying to manually set the active tab when I discovered that it fires the change event. Normally not an issue unless my change handler also happens to change the active tab. My understanding was that the change event only fires on user interaction, or at least the docs don't indicate otherwise.

Reproduction

Example Playground

Workaround

I have not found a workaround.

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Affected versions

1.0.0

Browser/OS/Node environment

Browser: Edge 117.0.2045.43 OS: Windows 11 22H2 Node version: 18.18.0 npm version: 10.1.0

austinw-fineart avatar Sep 28 '23 11:09 austinw-fineart

I'm getting this too, I guess its a bug because afik no other md or html elements trigger onchange when setting values via code. It would be very helpful to at least have an option to set active tab without triggering onchange.

mrchantey avatar Feb 06 '24 00:02 mrchantey