Issue #3731πŸ’¬ AnsweredOpened Aug 27, 2021by gustavohleal1 reactions

Text element not able to be selected twice after extended with events

Quick answerby gustavohleal❀ 1

That actually was the problem. Thanks for replying. I'll be closing the issue.

Read full answer below ↓

Question

Version: 0.17.25 Are you able to reproduce the bug from the demo?[ ] Yes[x] No What is the expected behavior? Update a existing component of type text by adding an event to his view. Describe the bug detailed The event is being added, but once I select another component I cannot go back to the first one. It can only be entered one time for edition. Are you able to attach screenshots, screencasts or a live demo?[x] Yes (attach)[ ] No first, i'm trying to extend the text type component to add an event to listen when something is typed. Even if I leave only a empty events property like events:{}...

Answers (4)

gustavohlealβ€’ Aug 30, 2021

That actually was the problem. Thanks for replying. I'll be closing the issue.

artfβ€’ Aug 30, 2021

The events are not automatically merged with the extended component so, you have to do it manually.

events: {
  ...domc.getType('text').view.prototype.events,
  keypress: (e) => {...}
}
GJSBlockβ€’ May 17, 2026

Thanks for reporting this, @gustavohleal. The issue with Text element not able to be selected twice after extended with events appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating an inconsi...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.