Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfixes #383

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions demo/src/app/components/api/api.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export interface IApiEvent {

export interface IApi {
selector:string;
properties?:[IApiProperty];
events?:[IApiEvent];
properties?:IApiProperty[];
events?:IApiEvent[];
}

export type ApiDefinition = [IApi];
export type ApiDefinition = IApi[];

@Component({
selector: "demo-api",
Expand Down
2 changes: 0 additions & 2 deletions demo/src/app/components/sidebar/sidebar.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Component, HostBinding, Output, EventEmitter, HostListener, isDevMode } from "@angular/core";
// Polyfill for IE
import "element-closest";

interface IAugmentedElement extends Element {
closest(selector:string):IAugmentedElement;
Expand Down
1 change: 1 addition & 0 deletions demo/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ import "core-js/es6/reflect";

import "core-js/es7/reflect";
import "zone.js/dist/zone";
import "element-closest";
2 changes: 1 addition & 1 deletion src/modules/datepicker/helpers/date-fns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { format, parse } from "date-fns";
import * as defaultLocale from "date-fns/locale/en-US";

interface IDateFnsLocaleValues { [name:string]:string[]; }
interface IDateFnsHelperOptions { type?:string; }
interface IDateFnsHelperOptions { type:string; }
type DateFnsHelper<U, T> = (value:U, options:IDateFnsHelperOptions) => T;
type DateFnsWeekStartsOn = 0 | 1 | 2 | 3 | 4 | 5 | 6;

Expand Down
2 changes: 0 additions & 2 deletions src/modules/dropdown/directives/dropdown-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import {
import { Transition, SuiTransition, TransitionController, TransitionDirection } from "../../transition/index";
import { HandledEvent, IAugmentedElement, KeyCode } from "../../../misc/util/index";
import { DropdownService, DropdownAutoCloseType } from "../services/dropdown.service";
// Polyfill for IE
import "element-closest";

@Directive({
// We must attach to every '.item' as Angular doesn't support > selectors.
Expand Down
5 changes: 3 additions & 2 deletions src/modules/search/components/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,10 @@ export class SuiSearch<T> implements AfterViewInit, OnDestroy {
public set query(query:string) {
this.selectedResult = undefined;
// Initialise a delayed search.
this.searchService.updateQueryDelayed(query, () =>
this.searchService.updateQueryDelayed(query, () => {
// Set the results open state depending on whether a query has been entered.
this.dropdownService.setOpenState(this.searchService.query.length > 0));
return this.dropdownService.setOpenState(this.searchService.query.length > 0);
});
}

@Input()
Expand Down