Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:修复searchbox组件无法绑定事件的问题 #6732

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

QingHui1229
Copy link
Collaborator

@QingHui1229 QingHui1229 commented Apr 26, 2023

What

🤖 Generated by Copilot at 03f8ba9

Simplified the dataSchema property of the SearchBoxPlugin class in SearchBox.tsx to improve search box functionality and events.

🤖 Generated by Copilot at 03f8ba9

We're sailing on the code sea, me hearties, yo ho ho
We're searching for the best way to make our plugin glow
We've simplified the dataSchema, now it's clear and neat
We'll heave away and test it on the count of three, repeat

Why

How

🤖 Generated by Copilot at 03f8ba9

  • Simplify the dataSchema property of the SearchBoxPlugin class to use an object type with a single property event.data.value instead of an array with two properties event.data.keywords and event.data.value in SearchBox.tsx (link, link, link, link)

@QingHui1229 QingHui1229 reopened this Apr 26, 2023
@QingHui1229 QingHui1229 changed the title searbox plugin 修改 fix:修复searchbox组件无法绑定事件的问题 Apr 26, 2023
@hsm-lv hsm-lv merged commit 69872b6 into baidu:master Apr 26, 2023
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.

None yet

3 participants