forked from MapComplete/MapComplete
Newlines, textfield sets the cursor position appropriately
This commit is contained in:
parent
984d88d01e
commit
223f6191cd
6 changed files with 10 additions and 16 deletions
|
@ -11,8 +11,7 @@ export class RadioButton<T> extends InputElement<T> {
|
|||
private readonly value: UIEventSource<T>;
|
||||
private readonly _elements: InputElement<T>[]
|
||||
private readonly _selectFirstAsDefault: boolean;
|
||||
|
||||
|
||||
|
||||
constructor(elements: InputElement<T>[],
|
||||
selectFirstAsDefault = true) {
|
||||
super(undefined);
|
||||
|
@ -20,7 +19,6 @@ export class RadioButton<T> extends InputElement<T> {
|
|||
this._selectFirstAsDefault = selectFirstAsDefault;
|
||||
const self = this;
|
||||
|
||||
|
||||
this.value =
|
||||
UIEventSource.flatten(this._selectedElementIndex.map(
|
||||
(selectedIndex) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue