Skip to content

Conversation

@haradakunihiko
Copy link
Owner

Summary

  • Add registerSetShow to ConfirmableProps for confirmable to register its setShow function
  • Add setShow to ConfirmationHandle in controls
  • Call setShow(false) in proceed/dismiss/cancel to immediately hide dialog

Background

When using controls.proceed() or other external control functions, the dialog's show state was not being updated because the state is managed inside confirmable. This caused the dialog to remain visible until unmountDelay completed.

With this change, external control functions now update the show state immediately, providing a smoother user experience.

Test plan

  • All existing tests pass
  • Verify dialog closes immediately when using proceed()/dismiss()/cancel()

🤖 Generated with Claude Code

- Add registerSetShow to ConfirmableProps for confirmable to register its setShow function
- Add setShow to ConfirmationHandle in controls
- Call setShow(false) in proceed/dismiss/cancel to immediately hide dialog
- This allows external control (proceed/dismiss/cancel) to update the show state

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@haradakunihiko haradakunihiko merged commit 73cf07d into master Dec 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants