Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/fe-887-use-property-init.md

This file was deleted.

15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# pion

## 2.16.1

### Patch Changes

- 7560f99: Fix: useProperty initialization sets default value even when preventDefault is called

When a parent component uses `lift()` to listen to a property change event without
passing the property value to the child, `useProperty`'s initialization event was
`preventDefault`'d by `lift`, leaving the host property `undefined`. This caused crashes
in components like `cosmoz-omnitable` where `selectedItems` was never initialized.

The `updater` method now accepts an `isInit` flag that bypasses the `preventDefault` veto
during initialization, ensuring the host always receives its default value. Subsequent
updates retain the full `lift`/`preventDefault` two-way binding semantics.

## 2.16.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pionjs/pion",
"version": "2.16.0",
"version": "2.16.1",
"description": "Hooks for web components",
"main": "lib/haunted.js",
"module": "lib/haunted.js",
Expand Down