Skip to content

Commit 54414e4

Browse files
committed
FIX: return value for closeby
Closes #12
1 parent ee824b6 commit 54414e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Return value for `closeby`
810

911
## [2.1.0] - 2025-04-15
1012
### Added

src/dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ function modifierValue(modifiers, key, fallback) {
9191
if (key === "closeby") {
9292
const allowedValues = ["auto", "none", "closerequest", "any"];
9393
const options = allowedValues.join(", ");
94+
9495
if (!allowedValues.includes(rawValue)) {
9596
console.warn(
9697
`"${rawValue}" is not one of the allowed values for closeby: ${options}`
9798
);
99+
return fallback;
98100
}
99-
100-
return fallback;
101101
}
102102

103103
return rawValue;

0 commit comments

Comments
 (0)