Skip to content

Commit

Permalink
Don't pass the keypad element when not interactive to hide keypad in …
Browse files Browse the repository at this point in the history
…static presentation.
  • Loading branch information
rtibbles committed Jul 2, 2024
1 parent 7a19ace commit faaca33
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@
onFocusChange: this.dismissMessage,
onInputError: logging.error,
isMobile: this.isMobile,
// Only show a keypad if we are in interactive mode.
customKeypad: this.interactive,
// Always use our custom keypad implementation
customKeypad: true,
readOnly: !this.interactive,
hintProgressColor: this.$themeTokens.primary,
},
Expand All @@ -418,7 +418,7 @@
this.keypadElement = keypadElement;
return e(perseus.ServerItemRenderer, {
...itemRenderData,
keypadElement: keypadElement,
keypadElement: this.interactive ? keypadElement : null,
});
},
);
Expand Down

0 comments on commit faaca33

Please sign in to comment.