Skip to content

Edit Changelog: Desktop IME input only keeps first letter #5974

@CriedHero

Description

@CriedHero

Describe the Bug

When typing using a desktop IME, the input field only keeps the first letter (e.g. z instead of 中).
This does not happen on mobile devices.

/resources/js/components/page-editor.js:
const updateChangelogDebounced = debounce(this.updateChangelogDisplay.bind(this), 300, false);
this.changelogInput.addEventListener('input', () => {
const count = this.changelogInput.value.length;
this.changelogCounter.innerText = ${count} / 180;
updateChangelogDebounced();
});

composition.

Steps to Reproduce

1.In the edit page interface.
2.click on the change log.
3.enter Chinese characters.

Expected Behaviour

When typing Chinese using a desktop IME, the input field only keeps the first letter (e.g. z instead of 中).
This does not happen on mobile devices.

Screenshots or Additional Context

Image

Browser Details

Google Chrome v143.0.7499.170 win11

Exact BookStack Version

v25.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions