Web browsers do not expose the active keyboard, so on the web the package falls back to the browser locale and to Bidi (bidirectional text) detection: it reads the text itself and picks left-to-right or right-to-left from the first strong letter, skipping digits, spaces, punctuation and emoji. That fallback is what you see here. Type Hebrew or Arabic into the fields and the direction flips as you type; start with digits, as in 123 - שלום, and it still turns right-to-left at the first Hebrew letter. How Bidi detection works →