-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize inputhint of prompt property #3196
Conversation
Pull Request Test Coverage Report for Build 492599783
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small possible suggestion, otherwise LGTM.
@@ -359,7 +359,9 @@ export abstract class InputDialog extends Dialog implements InputDialogConfigura | |||
msg = await this.prompt.bind(dc, dc.state); | |||
} | |||
|
|||
msg.inputHint = InputHints.ExpectingInput; | |||
if (typeof msg?.inputHint !== 'string' || !msg.inputHint) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if (typeof msg?.inputHint !== 'string')
should cover all the cases, unless msg.inputHint = ''
should be overridden to InputHints.ExpectingInput
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. Empty inputHint should be overridden to the default ExpectingInput. Thanks.
Fixes #3195
Description
Using
expectingInput
whileinputHint
property is not assigned of prompt property in InputDialog. Otherwise, keep it as it is.