@fluentui/priority-overflow
Advanced tools
Comparing version 0.0.0-nightly-20250221-0406.1 to 0.0.0-nightly-20250224-0407.1
# Change Log - @fluentui/priority-overflow | ||
This log was last generated on Fri, 21 Feb 2025 04:11:11 GMT and should not be manually modified. | ||
This log was last generated on Mon, 24 Feb 2025 04:11:55 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [0.0.0-nightly-20250221-0406.1](https://github.com/microsoft/fluentui/tree/@fluentui/priority-overflow_v0.0.0-nightly-20250221-0406.1) | ||
## [0.0.0-nightly-20250224-0407.1](https://github.com/microsoft/fluentui/tree/@fluentui/priority-overflow_v0.0.0-nightly-20250224-0407.1) | ||
Fri, 21 Feb 2025 04:11:11 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/priority-overflow_v9.1.14..@fluentui/priority-overflow_v0.0.0-nightly-20250221-0406.1) | ||
Mon, 24 Feb 2025 04:11:55 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/priority-overflow_v9.1.15..@fluentui/priority-overflow_v0.0.0-nightly-20250224-0407.1) | ||
@@ -16,2 +16,11 @@ ### Changes | ||
## [9.1.15](https://github.com/microsoft/fluentui/tree/@fluentui/priority-overflow_v9.1.15) | ||
Fri, 21 Feb 2025 14:34:03 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/priority-overflow_v9.1.14..@fluentui/priority-overflow_v9.1.15) | ||
### Patches | ||
- fix: Add a defensive check when getting overflow item records ([PR #33876](https://github.com/microsoft/fluentui/pull/33876) by lingfangao@hotmail.com) | ||
## [9.1.14](https://github.com/microsoft/fluentui/tree/@fluentui/priority-overflow_v9.1.14) | ||
@@ -18,0 +27,0 @@ |
@@ -49,2 +49,7 @@ "use strict"; | ||
const rte = overflowItems[rt]; | ||
// TODO this should not happen but there have been reports of one of these items being undefined | ||
// Try to find a consistent repro for this | ||
if (!lte || !rte) { | ||
return lte ? 1 : -1; | ||
} | ||
if (lte.priority !== rte.priority) { | ||
@@ -51,0 +56,0 @@ return lte.priority > rte.priority ? 1 : -1; |
@@ -42,2 +42,7 @@ import { DATA_OVERFLOWING, DATA_OVERFLOW_GROUP } from './consts'; | ||
const rte = overflowItems[rt]; | ||
// TODO this should not happen but there have been reports of one of these items being undefined | ||
// Try to find a consistent repro for this | ||
if (!lte || !rte) { | ||
return lte ? 1 : -1; | ||
} | ||
if (lte.priority !== rte.priority) { | ||
@@ -44,0 +49,0 @@ return lte.priority > rte.priority ? 1 : -1; |
{ | ||
"name": "@fluentui/priority-overflow", | ||
"version": "0.0.0-nightly-20250221-0406.1", | ||
"version": "0.0.0-nightly-20250224-0407.1", | ||
"description": "Vanilla JS utilities to implement overflow menus", | ||
@@ -5,0 +5,0 @@ "main": "lib-commonjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
115856
1051