Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jul 28, 2025

☑️ Resolves

With #7080 we dropped the update:open event, but the usage of the component is different - as you can already see in the docs of it. We in-officially used the attributes passing to the underlying NcPopover for custom open state handling.

So instead of this we should revert that change and instead just implement it correctly by providing the 2-way binding for open (consistent props naming) - then we need to reverse the event removal and remove close (which is covered by update:open and for fully closed (transitions done) the proper (consistent) named event closed).

I would backport the feat commits to v8 for forward compatibility.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

susnux added 3 commits July 28, 2025 00:01
This is mostly for more consistent event naming,
as the closing is happening after the `shown` state changed.
The *closed* state is meaning that all transistions have finished.

This is in-line with other events of similar use case.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
There was undocumented usage of the underlying `NcPopover` `shown` prop.
Instead this now provides the offical `open` prop for this usage.

The name was choosen because `open` is more consistently used in our
codebase for this use case instead of `shown`.

This also reverts the breaking changes entry for the `update:open` event.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux added this to the 9.0.0-rc.6 milestone Jul 28, 2025
@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews 💥 breaking PR that requires a new major version labels Jul 28, 2025
@susnux susnux changed the title fear(NcColorPicker): add proper open-state handling feat(NcColorPicker): add proper open-state handling Jul 28, 2025
@susnux susnux requested review from Antreesy and ShGKme July 28, 2025 13:37
@susnux susnux marked this pull request as ready for review July 28, 2025 13:37
@susnux susnux requested a review from GVodyanov July 28, 2025 13:42
@susnux susnux merged commit 55c020c into main Jul 28, 2025
27 checks passed
@susnux susnux deleted the feat/color-picker-closed branch July 28, 2025 15:21
@susnux
Copy link
Contributor Author

susnux commented Jul 28, 2025

/backport 292d4a7 f4d8bc9 to stable8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews 💥 breaking PR that requires a new major version enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants