mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-26 02:04:42 +08:00
Various color picker fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { html } from "lit"
|
||||
import MouseIgnore from "../input/mouse/MouseIgnore"
|
||||
import PinTemplate from "./PinTemplate"
|
||||
import Utility from "../Utility"
|
||||
|
||||
/**
|
||||
* @template T
|
||||
@@ -76,9 +77,7 @@ export default class IInputPinTemplate extends PinTemplate {
|
||||
getInputs() {
|
||||
return this.#inputContentElements.map(element =>
|
||||
// Faster than innerText which causes reflow
|
||||
element.innerHTML
|
||||
.replaceAll(" ", "\u00A0")
|
||||
.replaceAll("<br>", "\n")
|
||||
Utility.clearHTMLWhitespace(element.innerHTML)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user