Repository navigation
fix: keep the released Callout and TextInput event names - #604
Merged
Merged
Conversation
#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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#601 renamed two events that consumers of 1.0.4 listen to:
Callout:onClickbecamelearn-more.TextInput:onChangebecamevalue-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.vueemitsonClickagain, with the matchingdefineEmitstype.TextInput.vueemitsonChangeagain, with the matchingdefineEmitstype.@onClickagain.After this, the event names and emit types in both components match
v1.0.4.Not changed
MediaPickerno longer takes avalueprop. That is a standard Vue 3 change (v-model), so I left it.click-primerename on the prime components stays, because nobody uses those components anymore.TaggingInputstill doesn't emitupdate:value, andhideActionButtonsonModalBasicandModalCompis 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
@onClickhandler ran and the console had no warnings. I didn't runTextInputin a browser. Its emit name and type matchv1.0.4exactly.eslintpasses on both components.🤖 Generated with Claude Code