We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4775b6 + 729f7ba commit dcaed67Copy full SHA for dcaed67
packages/controls/src/widget_selection.ts
@@ -403,6 +403,21 @@ class RadioButtonsView extends DescriptionView {
403
this.touch();
404
}
405
406
+ /**
407
+ * Handle message sent to the front end.
408
+ */
409
+ handle_message(content: any) {
410
+ if (content.do == 'focus') {
411
+ const firstItem = this.container.firstElementChild as HTMLElement;
412
+ firstItem.focus();
413
+ } else if (content.do == 'blur') {
414
+ for (let i = 0; i < this.container.children.length; i++) {
415
+ const item = this.container.children[i] as HTMLElement;
416
+ item.blur();
417
+ }
418
419
420
+
421
container: HTMLDivElement;
422
423
0 commit comments