Skip to content

Fixed SearchBar CursorPosition and SelectionLength not updating when typing#34347

Merged
kubaflo merged 2 commits into
dotnet:inflight/currentfrom
Dhivya-SF4094:fix-30779
Apr 7, 2026
Merged

Fixed SearchBar CursorPosition and SelectionLength not updating when typing#34347
kubaflo merged 2 commits into
dotnet:inflight/currentfrom
Dhivya-SF4094:fix-30779

Updated SearchBarHandler

cb1f5f1
Select commit
Loading
Failed to load commit list.
Azure Pipelines / maui-pr-devicetests failed Apr 7, 2026 in 2h 13m 10s

Build #10.0.60-ci+pr.34347.azdo.1368452 had test failures

Details

Tests

  • Failed: 20 (0.56%)
  • Passed: 3,376 (94.88%)
  • Other: 162 (4.55%)
  • Total: 3,558

Annotations

Check failure on line 498 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

Build log #L498

Cmd.exe exited with code '1'.

Check failure on line 941 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

Build log #L941

Cmd.exe exited with code '1'.

Check failure on line 79 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

Build log #L79

PowerShell exited with code '1'.

Check failure on line 72 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

Build log #L72

PowerShell exited with code '1'.

Check failure on line 1 in FlowDirection is set correctly

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

FlowDirection is set correctly

Test failed

Check failure on line 1 in CursorPosition Updates When SearchBar Gains Focus (Issue 30779)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

CursorPosition Updates When SearchBar Gains Focus (Issue 30779)

Assertion timed out
Raw output
   at Microsoft.Maui.DeviceTests.AssertHelpers.AssertEventually(Func`1 assertion, Int32 timeout, Int32 interval, String message)
   at Microsoft.Maui.DeviceTests.SearchBarHandlerTests.<>c__DisplayClass28_0.<<CursorPositionUpdatesWhenSearchBarGainsFocus>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.Maui.DeviceTests.HandlerTestBasement`2.<>c__DisplayClass2_0.<<AttachAndRun>b__0>d[[Microsoft.Maui.Handlers.SearchBarHandler, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.DeviceTests.Stubs.SearchBarStub, Microsoft.Maui.Core.DeviceTests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.Maui.DeviceTests.AssertionExtensions.<AttachAndRun>d__51`1[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Microsoft.Maui.DeviceTests.AssertionExtensions.<AttachAndRun>d__51`1[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Microsoft.Maui.DeviceTests.AssertionExtensions.<>c__DisplayClass12_0`2.<<AttachAndRun>g__Run|0>d[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Microsoft.Maui.IPlatformViewHandler, Microsoft.Maui, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.Maui.DeviceTests.SearchBarHandlerTests.CursorPositionUpdatesWhenSearchBarGainsFocus()
--- End of stack trace from previous location ---

Check failure on line 1 in Using CharacterSpacing with LineHeight and TextDecorations works Correctly

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

Using CharacterSpacing with LineHeight and TextDecorations works Correctly

Test failed

Check failure on line 1 in Controls Tests.WorkItemExecution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / maui-pr-devicetests

Controls Tests.WorkItemExecution

The Helix Work Item failed. Often this is due to a test crash. Please see the 'Artifacts' tab above for additional logs.