Created
October 2, 2022 22:44
-
-
Save Mood-al/e92b65344a44496dd4996b819fa80a37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onInputBlur = (e) => { | |
setFocussed(false); | |
if (e.target.value === "" && locale === "ar") { | |
setDir("rtl"); | |
return; | |
} | |
locale === "ar" ? setDir("rtl") : setDir("ltr"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment