Dashboard Variable issue: Child variable is not updating automatically when parent variable is updated

I have declared three variables like below:

  1. cluster=label_values(kube_node_info,cluster)
  2. namespace=label_values(kube_pod_info{cluster=“$cluster”}, namespace)
  3. pod=label_values(kube_pod_info{kube_namespace_name=~“$namespace”, kube_cluster_name=~“$cluster”},pod)

when i selecting value for cluster it should update namespace variable and show only namespaces specific to that cluster only but this is not happening. similar case for pods as well