Input typing and condition

This commit is contained in:
barsdeveloper
2022-11-11 21:51:53 +01:00
parent 48065a4777
commit c3743572fc
15 changed files with 90 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
import { html } from "lit"
import { html, nothing } from "lit"
import IInputPinTemplate from "./IInputPinTemplate"
import INumericPinTemplate from "./INumericPinTemplate"
import Utility from "../Utility"
@@ -14,7 +14,7 @@ export default class RealPinTemplate extends INumericPinTemplate {
}
renderInput() {
if (this.element.isInput()) {
if (this.element.isInput() && !this.element.isLinked) {
return html`
<div class="ueb-pin-input">
<ueb-input .singleLine="${true}"
@@ -23,6 +23,6 @@ export default class RealPinTemplate extends INumericPinTemplate {
</div>
`
}
return html``
return nothing
}
}