dotnet / dotnet/docfx

Searched word remains marked when search field is cleared

Open
#8,240 0 comments 0 reactions 0 assignees View on GitHub
search
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Operating System**: Windows

**DocFX Version Used**: 2.59.4

**Template used**: default

**Steps to Reproduce**:
1. Search a word in DocFX.
![bilde](https://user-images.githubusercontent.com/70053553/200842240-0316d256-0ca5-4178-8ca5-1741ea8e8f35.png)

2. Click into an article from search results.
![bilde](https://user-images.githubusercontent.com/70053553/200843691-aec015fa-0edc-42f0-9d34-06b25b18c874.png)

**Expected Behavior**:
Searched word should have default background when search field is cleared. No additional space should be added before or after the searched word.

**Actual Behavior**:
Searched work remains marked when clicking into an article and search field is cleared and a space is added around the searched word. I.e, when I search for "file" as in the example, the word "files" in the article becomes "file s"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.