Skip to content

Commit

Permalink
Merge c3f2c32 into b8cada3
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed May 18, 2023
2 parents b8cada3 + c3f2c32 commit dc4610e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/pro/search/src/ProSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ export default defineComponent({
}
const handleSearchBtnMouseDown = (evt: MouseEvent) => {
evt.preventDefault()
evt.stopImmediatePropagation()

Check warning on line 146 in packages/pro/search/src/ProSearch.tsx

View check run for this annotation

Codecov / codecov/patch

packages/pro/search/src/ProSearch.tsx#L146

Added line #L146 was not covered by tests
}
const handleClearBtnMouseDown = (evt: MouseEvent) => {
evt.preventDefault()
evt.stopImmediatePropagation()

Check warning on line 150 in packages/pro/search/src/ProSearch.tsx

View check run for this annotation

Codecov / codecov/patch

packages/pro/search/src/ProSearch.tsx#L150

Added line #L150 was not covered by tests
}

provide(proSearchContext, {
Expand Down
5 changes: 3 additions & 2 deletions packages/pro/search/src/composables/useSegmentStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,14 @@ export function useSegmentStates(
}
const confirmSearchItem = () => {
const key = props.searchItem!.key
const validateRes = validateSearchState(key)
const searchValue = convertStateToValue(key)

Object.entries(segmentStates.value).forEach(([name, state]) => {
updateSegmentValue(state.value, name, key)
})

const validateRes = validateSearchState(key)
const searchValue = convertStateToValue(key)

if (!validateRes) {
removeSearchState(key)
} else {
Expand Down

0 comments on commit dc4610e

Please sign in to comment.