Can't add a property value that's a substring of another value

Once you’ve done the above, delete everything above this line.

Steps to reproduce

  1. In the sandbox vault, create a note called Test 1.
  2. Right-click on the note’s tab and select “Add file property” from the context menu.
  3. Add a property with name=label, value=XY10.
  4. Create another note called Test 2.
  5. Try to add a property with name=label, value=XY1.

Did you follow the troubleshooting guide? [Y/N] Y

Yes, I tried it in the sandbox vault.

Expected result

After I type “XY1” in the Properties table value field for the “label” property and hit Enter or Tab, the property value should be set to “XY1”.

Actual result

The value of the “label” property is set to “XY10”. Although I type “XY1”, Obsidian autocorrects it to “XY10” when I press Enter or Tab.

Environment

SYSTEM INFO:
Obsidian version: v1.9.14
Installer version: v1.8.3
Operating system: Windows 11 Pro 10.0.26100
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Stop Press: I found a way to enter “XY1”. Type “XY1” without pressing Enter or Tab. Now switch to another app, such as another instance of Obsidian. The string “XY1” stays in the text box and doesn’t get autocorrected. This is a useful workaround but probably not the data entry method that the developers had in mind.

To expand the problem description slightly, this happens because the first item in the suggestions dropdown is automatically selected. I thought there was an existing feature request or bug report about this but I can’t find it now. I’m sure I’ve at least seen discussion about it. I may have been thinking of Don't show property value suggestions when there's only one which is a different issue caused by the dropdown.

An easier workaround is to click or tap outside the entry area.

The mouse-free way to use the current input (and ignore the autosuggest option) is:
ShiftEnter.

Another option is to dismiss the suggestions entirely with Esc And then you can just press Enteror Tab to use the current text.