Bug 1699863 Comment 20 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

So we have two options here:

1. Drop our scrolling behavior for `setSelectionRange()`
2. Or, for now just replace the `select()` call with `input.setSelectionRange(0, input.value.length, "backward")` to workaround this. `backward` will put the cursor to the start position in this case.

I'm not sure whether option 1 would have significant web compat issue. Masayuki, do you have an opinion?
So we have two options here:

1. Drop our scrolling behavior for `select()` and `setSelectionRange()`
2. Or, for now just replace the `select()` call with `input.setSelectionRange(0, input.value.length, "backward")` to workaround this. `backward` will put the cursor to the start position in this case.

I'm not sure whether option 1 would have significant web compat issue. Masayuki, do you have an opinion?
So we have two options here:

1. Drop our scrolling behavior for `select()` and `setSelectionRange()`
2. Or, for now just replace the `select()` call with `input.setSelectionRange(0, input.value.length, "backward")` to workaround this. `backward` will put the cursor to the start position in this case.
3. Or, add `input.scrollTo(0, 0)`, it will scroll back to the start position.

I'm not sure whether option 1 would have significant web compat issue. Masayuki, do you have an opinion?
So we have two options here:

1. Drop our scrolling behavior for `select()` and `setSelectionRange()`
2. Or, for now just replace the `select()` call with `elt.setSelectionRange(0, input.value.length, "backward")` to workaround this. `backward` will put the cursor to the start position in this case.
3. Or, add `elt.scrollTo(0, 0)`, it will scroll back to the start position.

I'm not sure whether option 1 would have significant web compat issue. Masayuki, do you have an opinion?
So we have two options here:

1. Drop our scrolling behavior for `select()` and `setSelectionRange()`
2. Or, for now just replace the `select()` call with `elt.setSelectionRange(0, elt.value.length, "backward")` to workaround this. `backward` will put the cursor to the start position in this case.
3. Or, add `elt.scrollTo(0, 0)`, it will scroll back to the start position.

I'm not sure whether option 1 would have significant web compat issue. Masayuki, do you have an opinion?

Back to Bug 1699863 Comment 20