Skip to content

GlButton: Disabled state not working properly if to attribute is set.

Issue

If you set the to attribute to a truthy value, while having the disabled state set to true, it will show the variant's color and the standard cursor. However if you set to to false, the disabled state works as excepted.

Tested with: v17.34.0

Example

<gl-button disabled variant="success" to="/foo">
  Test
</gl-button>

Result: 3v15mCMLiHaUSjnKrFtNPhIXduxBYZf2

Expected Result: ydTjqMkHK72RXiBZOsEwnS9Gpc5rfeaN

It works if we set to to any falsy value.

Edited by Constantin Metz