question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[JavaScript][Input.Number] [Type of value has changed with latest update]

See original GitHub issue

Platform

What platform is your issue or question related to? (Delete other platforms).

  • JavaScript

Author or host

Host: Microsoft Teams (multi-window).

Version of SDK

JS v2.5.0.

Details

The value prop of Input.Number has changed from string type in v1.2.5 to number | undefined type in v2.x. This can potentially break existing host scenarios. image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
dclauxcommented, Nov 30, 2020

@aroraketan @shalinijoshi19 this is by design. The behavior was changed because the JS SDK’s behavior didn’t match that of the other SDKs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input type ="number" Value does not update in html is this ...
My input had type="number" and I was setting a non numeric value to it using JavaScript. This is a really subtle mistake and...
Read more >
input[type='number'] value isn't updated · Issue #13651
Assuming I'm thinking about this correctly, it looks like the issue is that the value attribute is reporting as "01" when it should...
Read more >
Why the number input is the worst input
This is the flipside of the invalid number value issue: the number input allows you to enter values that are technically acceptable numbers,...
Read more >
HTML DOM Input Number value Property
Input Number value Property ; Change the number of a number field: document.getElementById("myNumber").value = "16"; ; Get the number of a number field:...
Read more >
Form Input Bindings
If the value cannot be parsed with parseFloat() , then the original value is used instead. The number modifier is applied automatically if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found