backport SL-2272

This commit is contained in:
Cory LaViska
2024-12-04 11:39:12 -05:00
parent 6cc030fa06
commit 678e3bd108
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ During the alpha period, things might break! We take breaking changes very serio
- Added more resilient support for lazy loaded options in `<wa-select>`
- Added support for vertical button groups
- Fixed a bug in `<wa-rating>` when using `precision`
- Fixed a bug in `<sl-rating>` that allowed tabbing into the rating when readonly
- Fixed a bug in `<wa-relative-time>` where the title attribute would show with redundant info
- Fixed a bug in `<wa-tooltip>` that caused a memory leak in disconnected elements
- Fixed a bug in `<wa-select>` that prevented label changes in `<wa-option>` from updating the controller

View File

@@ -240,7 +240,7 @@ export default class WaRating extends WebAwesomeElement {
aria-valuenow=${this.value}
aria-valuemin=${0}
aria-valuemax=${this.max}
tabindex=${this.disabled ? '-1' : '0'}
tabindex=${this.disabled || this.readonly ? '-1' : '0'}
@click=${this.handleClick}
@keydown=${this.handleKeyDown}
@mouseenter=${this.handleMouseEnter}