Skip to content

docs: keep hasFocus click-to-edit example usable when name is empty - #2632

Open
Hashim1999164 wants to merge 1 commit into
knockout:gh-pagesfrom
Hashim1999164:fix/hasfocus-empty-name-example
Open

docs: keep hasFocus click-to-edit example usable when name is empty#2632
Hashim1999164 wants to merge 1 commit into
knockout:gh-pagesfrom
Hashim1999164:fix/hasfocus-empty-name-example

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • Fixes the click-to-edit example on the hasFocus binding docs so clearing the name does not leave an empty, unclickable label.
  • Uses a simple placeholder ([ none ]) when name is empty, matching the suggestion on bug in example hasfocus-binding.html #2581.

Closes #2581

Test plan

  • Open the hasFocus docs page click-to-edit example
  • Click the name, clear the input, blur to leave edit mode
  • Confirm the placeholder is shown and clicking it re-enters edit mode

When the example name is cleared, text: name leaves an empty <b> with
nothing to click, so edit mode cannot be re-entered. Show a placeholder
so the control stays usable. Fixes knockout#2581.
@mbest mbest added this to the 3.5.4 milestone Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants