question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when appendTo="body" and using custom header template to search, ArrowDown, ArrowUp & Enter won't work.

See original GitHub issue

example: https://stackblitz.com/edit/angular-znc8gc?file=src/template-search-example.component.html

In my use case, I have to set appendTo="body" and customize search control in header template, but in this case, I can’t scroll up or down using keyboard when focusing in custom search input, neither select an item by Enter key.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
akashthakur05commented, Dec 17, 2020
<ng-select
	#select
	>
	<ng-template *ngIf="searchable" ng-header-tmp>
		<div class="d-flex align-items-center">
			<input
				type="text"
				class="w-100"
				nbInput
				[placeholder]="'Start Typing '"
				(input)="select.filter($event.target.value)"
				(change)="$event.stopPropagation()"
				(keydown)="select.handleKeyDown($event)"
			/>
			<i class="fas fa-search fa-lg pl-2 text-gainsboro"></i>
		</div>
	</ng-template>
	<ng-select>

I Used this using my custom template and it solved the problem and select is

0reactions
akashthakur05commented, Dec 17, 2020

@jupin-r I totally agree with you, I think they are not active.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enter with @keyup event not working in Vue - Stack Overflow
I am using vue router so getting error "Uncaught ReferenceError: app is not defined". – Hitendra · In my example, app is the...
Read more >
Diff - f508984^! - platform/build - Git at Google
diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css ... ajax search callback to nothing, so results don't appear unless ENTER + searchControl.
Read more >
Dialog - PrimeNG - PrimeFaces
Use style property to define the dimensions of the Dialog. ... Header and Footers sections can be customized using header and footer templates....
Read more >
element-plus - UNPKG
hasOwnProperty;function _w(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Uw.call(e,"index")&&(n.index=e.index,n.input=e.input) ...
Read more >
primereact | Yarn - Package Manager
PrimeReact is an open source UI library for React featuring a rich set of 80+ ... Bootstrap, Tailwind, premium templates and professional support....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found