SharePoint / SharePoint/sp-dev-docs

EventReciever from OL element prevents the Bullet list after inserting hyperlink within the Text Editor in SharePoint Online Webpart

Open
#9,673 5 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Jan 21, 2026.

Needs: Author Feedback Needs: Triage :mag: type:bug-suspected
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested
  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details
  • browser version - 124.0.6367.119
  • SPFx version - latest
  • Node.js version - 18.16.1
  • etc
Describe the bug / error

When i try to insert a bullet list after inserting hyperlink in the text editor, an eventlistener of keydown prevents the bullet list to insert. The preventDefault function is called in the _handleKeyDown function based on a condition. Please check the screenshot below,

image
image

Steps to reproduce
  1. Create a Text Editor within the sharePoint online webpart.
  2. Insert some bullet points with texts.
  3. Now insert a hyperlink inside the Editor.
  4. Then again try to add more bullets to the previously inserted list.
Expected behavior

It should be able to insert the bullet list even after inserting links into the Editor.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.