Skip to content

fix: keep the released Callout and TextInput event names - #604

Merged
joshua-larks merged 1 commit into
masterfrom
fix/restore-callout-textinput-events
Nov 9, 2026
Merged

joshua-larks merged 1 commit into
masterfrom
fix/restore-callout-textinput-events

Conversation

@joshua-larks

Copy link
Copy Markdown
Collaborator

Why

#601 renamed two events that consumers of 1.0.4 listen to:

  • Callout: onClick became learn-more.
  • TextInput: onChange became value-change.

The old listeners don't throw. They just stop firing. This PR restores the 1.0.4 names so these two components aren't breaking changes in the next release.

What changed

  • Callout.vue emits onClick again, with the matching defineEmits type.
  • TextInput.vue emits onChange again, with the matching defineEmits type.
  • The Callouts demo listens with @onClick again.

After this, the event names and emit types in both components match v1.0.4.

Not changed

  • MediaPicker no longer takes a value prop. That is a standard Vue 3 change (v-model), so I left it.
  • The click-prime rename on the prime components stays, because nobody uses those components anymore.
  • TaggingInput still doesn't emit update:value, and hideActionButtons on ModalBasic and ModalComp is still typed as a boolean. I didn't change either.

Testing

I ran the dev server and clicked the "Learn more" link on the Callouts demo. The @onClick handler ran and the console had no warnings. I didn't run TextInput in a browser. Its emit name and type match v1.0.4 exactly. eslint passes on both components.

🤖 Generated with Claude Code

#601 renamed Callout's onClick event to learn-more and TextInput's
onChange event to value-change. Consumers who listen with @OnClick or
@on-Change on 1.0.4 would stop getting those events, with no error.

This puts the 1.0.4 names back so the two components stay compatible
with released versions. The Callouts demo listens with @OnClick again.

Tested in the dev server: clicking the "Learn more" link on the Callouts
demo runs the @OnClick handler and logs no Vue warnings. TextInput's
emit name and type now match v1.0.4 exactly, but I didn't run it in a
browser. eslint passes on both components.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@joshua-larks
joshua-larks merged commit 5a04e0e into master Nov 9, 2026
4 checks 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.

1 participant