@meta2d/core 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/pen/render.js CHANGED
@@ -774,7 +774,7 @@ export function getTextColor(pen, store) {
774
774
  function drawText(ctx, pen) {
775
775
  const { fontStyle, fontWeight, fontSize, fontFamily, lineHeight, text, hiddenText, canvas, textHasShadow, textBackground, textType, } = pen.calculative;
776
776
  if (pen.input &&
777
- !pen.text &&
777
+ isEmptyText(pen.text) &&
778
778
  !(pen.calculative.canvas.inputDiv.dataset.penId === pen.id) &&
779
779
  !pen.onShowInput) {
780
780
  ctx.save();