Is there a way to hide the add new button on a table component if after using the search component it returns any record. I use the search component to search fro a drivers phone number, if found I don want to leave the add new so they dont click on it and possibly create a new record.
/* Show ONLY when the empty-state is visible */
.table-outer-wrapper:has(.tb-no-record-found:not(.ng-hide)) .t-new-record-button {
display: inline-block !important;
}