pixijs / ui

Commonly used UI components for PixiJS

Home Page:https://pixijs.io/ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Input cursor is set to correct color only if textStyle.fill is a number

rottencandy opened this issue · comments

commented

Expected Behavior

The blinking cursor for Input should match the color of the text which is specified in options.textStyle.fill

Current Behavior

The color only gets set if the value of textStyle.fill is a number, doesn't work for example if the value is "white"

Possible Solution

Convert the fill value to a number before using.

Steps to Reproduce

Create an Input using a textStyle.fill that is not a number.

Environment

  • version: 2.0.0
  • Browser & Version: Chrome 123
  • OS & Version: Linux