darkreader / darkreader/darkreader

[Bug] Incorrect Tab behavior in DevTools editor

Open
#9,331 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
22.4k
Forks
2.7k
Avg merge
21h 11m
Merged PRs (30d)
78

Description

# Bug Report

## Website Address

N/A
## Bug Description

After settings reset, text editor inserts too many spaces on Tab button press.

## Steps To Reproduce

- open DevTools
- Click "Reset changes" and confirm multiple times (e.g., two times)
- Press "Tab"
- Observe that one "Tab" press was replaced "multiple" times (e.g., if you reset twice, then there will be 3*4 spaces instead of 4 spaces)

## Expected Behavior

- one Tab press always produces 4 spaces

## Actual Behavior

- 12 spaces

## Screenshots

N/A

## System Information

- OS: Windows 11
- Browser: Chrome 103
- Dark Reader Version: 4.9.39

## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.