Skip to content

Commit

Permalink
Corrected issue regarding browser validation (#11927)
Browse files Browse the repository at this point in the history
message for float number inputs

For the preference number input if a float should be accepted in that
field there will be no more a failure message showing.
  • Loading branch information
EstFoisy authored Dec 2, 2022
1 parent 8f5e457 commit cb07786
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class PreferenceNumberInputRenderer extends PreferenceLeafNodeRenderer<nu
const interactable = document.createElement('input');
this.interactable = interactable;
interactable.type = 'number';
interactable.step = this.preferenceNode.preference.data.type === 'integer' ? '1' : 'any';
interactable.classList.add('theia-input');
interactable.defaultValue = this.getValue()?.toString() ?? '';
interactable.oninput = this.handleUserInteraction.bind(this);
Expand Down

0 comments on commit cb07786

Please sign in to comment.