Skip to content

Commit bdb022e

Browse files
committed
Update .gitignore to exclude appsettings.json and improve AutoComplete component's search text handling
1 parent b582a86 commit bdb022e

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ _framework
8282
CLAUDE.*
8383
claude-artifacts/
8484
*.artifact.json
85+
appsettings.json
8586

8687
claude_workspace/
8788
.claude-workspace/
@@ -105,3 +106,4 @@ publish-trimmed/
105106
.DS_Store
106107
Thumbs.db
107108

109+
samples/AutoComplete.Playground/appsettings.json

samples/AutoComplete.Playground/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"OpenAI": {
3-
"ApiKey": "your-api-key-here",
3+
"ApiKey": "your-openai-api-key-here",
44
"Model": "text-embedding-3-small"
55
},
66
"Logging": {

src/EasyAppDev.Blazor.AutoComplete/Components/AutoComplete.razor

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
id="@_inputIdValue"
3030
class="ebd-ac-input"
3131
placeholder="@Placeholder"
32-
value="@_searchText"
33-
@oninput="OnSearchTextChanged"
32+
@bind-value="_searchText"
33+
@bind-value:event="oninput"
34+
@bind-value:after="OnSearchTextChangedAsync"
3435
@onkeydown="HandleKeyDown"
3536
@onkeydown:preventDefault="@_shouldPreventDefault"
3637
@onfocus="OnFocusIn"

src/EasyAppDev.Blazor.AutoComplete/Components/AutoComplete.razor.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,8 @@ private void ApplyConfiguration(AutoCompleteConfig<TItem> config)
509509

510510
#region Event Handlers
511511

512-
private async Task OnSearchTextChanged(ChangeEventArgs e)
512+
private async Task OnSearchTextChangedAsync()
513513
{
514-
_searchText = e.Value?.ToString() ?? string.Empty;
515-
516514
if (_searchText.Length >= MinSearchLength)
517515
{
518516
if (_debounceTimer != null)

0 commit comments

Comments
 (0)