azure-search-openai-demo
azure-search-openai-demo copied to clipboard
submit question button is disabled
The Submit question button "mouse over is disabled" -always . No matter with or without text. It still works with Return key to send a message Using latest Chrome
I'm unable to replicate this, here's what I see in Edge:
Is this with user login enabled or other features?
AZURE_USE_AUTHENTICATION="true" AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS="true" AZURE_ENABLE_UNAUTHENTICATED_ACCESS="false" AZURE_ENFORCE_ACCESS_CONTROL="true"
/auth_setup -> "enableUnauthenticatedAccess":false, "useLogin":true, "requireAccessControl":true
export const requireLogin = requireAccessControl && !enableUnauthenticatedAccess;
const disableRequiredAccessControl = requireLogin && !loggedIn; const sendQuestionDisabled = disabled || !question.trim() || requireLogin;
For me it look like the button is always disabled when requireLogin is true. That does not make sense when i am logged in already
Maybe it shall be better
const sendQuestionDisabled = disabled || !question.trim() || disableRequiredAccessControl;
This doesn't seem logical. @pamelafox, should I create a quick fix with a PR?
Yes please, thank you @jeannotdamoiseaux