Skip to content

Commit db4a961

Browse files
committed
Fix: Setting unit at the end of inputbar string
1 parent 146957d commit db4a961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/gui/api/component/button/InputBarOverlay.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,6 @@ abstract class InputBarOverlay (val renderer: RenderLayer, owner: ChildLayer.Dra
123123

124124
fun toggle() {
125125
isActive = !isActive
126-
if (isActive) typed = getText()
126+
if (isActive) typed = getText().filter { isCharAllowed("", it) }
127127
}
128128
}

0 commit comments

Comments
 (0)