From 354b7520f1892fe17f72e8161084b912d2cc5e6b Mon Sep 17 00:00:00 2001 From: rudrakshagarwal4200-ai Date: Sun, 18 Oct 2026 01:01:10 +0530 Subject: [PATCH] Add inheritAriaAttributes to searchbar component --- core/src/components/searchbar/searchbar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/components/searchbar/searchbar.tsx b/core/src/components/searchbar/searchbar.tsx index b04481be01e..caa85f6c670 100644 --- a/core/src/components/searchbar/searchbar.tsx +++ b/core/src/components/searchbar/searchbar.tsx @@ -1,6 +1,6 @@ import type { ComponentInterface, EventEmitter } from '@stencil/core'; import { Component, Element, Event, Host, Method, Prop, State, Watch, forceUpdate, h } from '@stencil/core'; -import { debounceEvent, raf, componentOnReady, inheritAttributes } from '@utils/helpers'; +import { debounceEvent, raf, componentOnReady, inheritAttributes, inheritAriaAttributes } from '@utils/helpers'; import type { Attributes } from '@utils/helpers'; import { isRTL } from '@utils/rtl'; import { createColorClasses } from '@utils/theme'; @@ -282,6 +282,7 @@ export class Searchbar implements ComponentInterface { componentWillLoad() { this.inheritedAttributes = { + ...inheritAriaAttributes(this.el), ...inheritAttributes(this.el, ['lang', 'dir']), }; } @@ -687,7 +688,7 @@ export class Searchbar implements ComponentInterface { >
(this.nativeInput = el)} class="searchbar-input"