Input: support RTL detection on all Inputs, remove from AutosuggestInput
This commit is contained in:
@ -45,7 +45,7 @@ function isRtl(text: string, confidence = 0.3): boolean {
|
||||
|
||||
interface GetTextDirectionOpts {
|
||||
/** The default direction to return if the text is empty. */
|
||||
fallback?: 'ltr' | 'rtl';
|
||||
fallback?: 'ltr' | 'rtl' | undefined;
|
||||
/** The confidence threshold (0-1) to use when determining the direction. */
|
||||
confidence?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user