Skip to content

Consul UI KV viewer missing vertical scrollbar and browser search (Ctrl+F) not working for long values (regression from 1.17.x) #23135

@snipy77

Description

@snipy77

Describe the bug

After upgrading Consul from 1.17.1 to 1.22.1 / 1.22.2, the Key/Value (KV) UI in the web interface exhibits two regressions:

Vertical scrollbar missing

Long values cannot be scrolled properly in the UI.

Previously (1.17.1), a scrollbar appeared automatically for large values.

Browser search (Ctrl+F) cannot find values outside the visible viewport

Previously (1.17.1), the browser could find any key or value regardless of visibility.

Now, the search only works for values currently rendered in the viewport.

Steps to reproduce

Run Consul 1.22.1 / 1.22.2

Open the Web UI → Key/Value

Select a key with a long, multi-line value

Attempt to scroll → no vertical scrollbar

Attempt Ctrl+F in the browser for a key/value not currently visible → not found

Expected behavior

The KV viewer should display a vertical scrollbar for all long values.

Browser search (Ctrl+F) should be able to locate all keys and values, as it did in 1.17.1.

Actual behavior

Vertical scroll is missing → content may be truncated and not scrollable

Browser search cannot find keys/values outside the rendered viewport

Technical analysis

Scrollbar issue

UI now uses CodeMirror 6, which uses flexbox and virtual rendering.

CSS currently sets:

.cm-scroller {
height: 100%;
overflow-x: auto;
/* missing overflow-y */
}

A manual CSS fix can temporarily restore scrolling:

.cm-scroller {
overflow-y: auto;
max-height: 80vh;
}

Browser search issue

CodeMirror 6 implements virtual rendering, so only visible lines exist in the DOM.

Browser Ctrl+F only searches the DOM → invisible lines are ignored.

This is a regression compared to 1.17.1 where all text was fully rendered.

Could you please confirm whether this is a general issue affecting all users or an isolated case?

Thank you in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions