Skip to content

bug in Inputs.bind(Inputs.range()): cannot enter number with a decimal point #275

@KenNeighbors

Description

@KenNeighbors

Describe the bug
I create an Inputs.range slider with no "step" specified because I want to be able to enter any floating-point number. I then create an Inputs.bind in a different location in my notebook. However, I am only able to enter integer numbers. The browser will not let my type a decimal point. The only exception is if I completely delete the number and type a number starting with a decimal point.

To Reproduce
Create two javascript cells in an Observable Notebook:

viewof range = Inputs.range([0, 100])
Inputs.bind(Inputs.range([0, 100]), viewof range)

Then try to type "50.5" in the second input.

Example Notebook

Expected behavior
I expect the bound input to behave the same as the source input: let me type a number with a decimal point.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox, Chrome
  • Version: 128.9.0esr, 136.0.7103.59

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions