There is a <div>
element on my page.
<div id="ViewActivitydiv" >
@await Component.InvokeAsync("QuestionAnswers", new { activityQuestionAnswersList = Model.ActivityQuestionAnswers?.ToList() })
</div>
I need to restrict users from using keyboard shortcuts, tabs, or pointing devices within this specific <div>
.
I attempted to add tabindex="-1"
, but it did not work as expected since the component model is located on a different page and affects only certain controls inside of it.
Could someone please assist me in achieving this? Thank you.