Skip to content

Commit a649168

Browse files
web-padawanclaude
andauthored
chore: exclude focus and blur events from CEM output (#11386)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 84e5529 commit a649168

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

custom-elements-manifest.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ const ignoredAttributeTypes = ['object', 'unknown', 'Array'];
1010
// (e.g., `this._controller.slotName = 'sr-label'` misinterpreted as a class field)
1111
const ignoredMembers = ['slotName', 'id'];
1212

13-
// Events incorrectly picked up by CEM from dynamic dispatchEvent calls
14-
// (e.g., `new CustomEvent(eventName, ...)` where eventName is a variable)
15-
const ignoredEvents = ['eventName'];
13+
// Events to exclude from CEM output:
14+
// - eventName: false positive from dynamic dispatchEvent calls (e.g., `new CustomEvent(eventName, ...)`)
15+
// - focus, blur: native events picked up by CEM without @fires annotations, not part of the public API
16+
const ignoredEvents = ['eventName', 'focus', 'blur'];
1617

1718
const ignoredStaticMembers = [
1819
'is',

0 commit comments

Comments
 (0)