systelab / systelab-components

Systelab Angular common components
MIT License
14 stars 8 forks source link

Fature 785 #786

Closed p-riera closed 9 months ago

p-riera commented 10 months ago

PR Details

Added functionality to clear input text on autocomplete component, also added the event capture to reset autocomplete search result to empty

Description

Changed input type from "text" to "search" to make the clear button appear when the input is not empty Added "search" event capture, which is the event fired by this clear button, to refresh the autocomplete query and its results.

Related Issue

785

Motivation and Context

Users struggled to clear text in their input using their keyboard, so they demanded a button to clear its content at once

How Has This Been Tested

this change has been tested manually, and run existing tests to check nothing was broken

Types of changes

Checklist

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5223afa) 55.34% compared to head (2ab6a2d) 55.34%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 15.3.x #786 +/- ## ======================================= Coverage 55.34% 55.34% ======================================= Files 126 126 Lines 3491 3491 Branches 606 606 ======================================= Hits 1932 1932 Misses 1451 1451 Partials 108 108 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.