Closed Rajdeepc closed 4 weeks ago
Category | Latest (report) | Main (report) | Branch (report) |
---|---|---|---|
Performance | 0.99 | 0.99 | 0.99 |
Accessibility | 1 | 1 | 1 |
Best Practices | 1 | 1 | 1 |
SEO | 1 | 0.92 | 0.92 |
PWA | 1 | 1 | 1 |
main
("Main"). Higher scores are better, but *note that the SEO scores on Netlify URLs are artifically constrained to 0.92.*
Category | Latest | Main | Branch |
---|---|---|---|
Total | 222.586 kB | 210.736 kB 🏆 | 210.775 kB |
Scripts | 54.539 kB | 48.482 kB | 48.354 kB 🏆 |
Stylesheet | 35.052 kB | 30.302 kB 🏆 | 30.487 kB |
Document | 5.98 kB | 5.347 kB | 5.31 kB 🏆 |
Font | 127.015 kB | 126.605 kB 🏆 | 126.624 kB |
Category | Latest | Main | Branch |
---|---|---|---|
Total | 45 | 45 | 45 |
Scripts | 37 | 37 | 37 |
Stylesheet | 5 | 5 | 5 |
Document | 1 | 1 | 1 |
Font | 2 | 2 | 2 |
Background
The current implementation uses
type="search"
on the input element, causing the search value to be cleared whenever theESC
key is pressed. This default behavior is not always desirable.Objective
To provide an API that allows users to determine whether the search value should be retained when the
ESC
key is pressed. This will be achieved through a new propertyholdValueOnEscape
.Implementation Details
Property Introduction: A new Boolean property
holdValueOnEscape
is introduced. When set totrue
, thetype
attribute of the input element is set to'text'
, preventing the default behavior of clearing the input value onESC
.Default Behavior: By default,
holdValueOnEscape
is true, ensuring the value is retained whenESC
is pressed. Conditionally Setting Type: In thefirstUpdated
lifecycle method, the type attribute of the input element is conditionally set to 'text' based on theholdValueOnEscape
property.Related issue(s)
-
Motivation and context
How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.